To concatenate two strings in PHP, you use the ______ operator.
- +
- -
- *
- .
To concatenate two strings in PHP, you use the dot (.) operator. The dot operator is specifically used for string concatenation. It allows you to combine multiple strings into a single string. When the dot operator is used between two string values, it joins them together to form a concatenated string. Learn more: https://www.php.net/manual/en/language.operators.string.php
Loading...
Related Quiz
- You are writing a PHP script and you need to send an email. How would you do this using mail functions?
- How can we determine whether a PHP variable is an instantiated object of a certain class?
- To access data from the $_POST superglobal in PHP, you can use $_POST['fieldname'] where 'fieldname' is the name of the ______ you wish to access.
- What are the differences between a trait and a class in PHP?
- Which of the following are ways to create a file in PHP?