What is the concatenation operator in PHP?
- +
- -
- *
- .
The concatenation operator in PHP is the dot (.) operator. It is used to concatenate or join two or more strings together. When the dot operator is used between two strings, it combines them to form a single string. For example, "Hello" . "World" will result in "HelloWorld". Learn more: https://www.php.net/manual/en/language.operators.string.php
Loading...
Related Quiz
- What can be potential issues when working with Regular Expressions in PHP?
- echo and print are functions in PHP.
- You are writing a PHP script and you need to access data that was submitted from a form using the POST method. How would you do this using a superglobal?
- The asort() function in PHP sorts an associative array in ascending order based on its values, while maintaining the association between keys and values.
- In PHP, you can start a session using the session_start() ______.