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
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *