PHP Developer Question:
Download Questions PDF

How To concatenate the two strings together in PHP?

Answer:

You can use the string concatenation operator (.) to join two strings into one. Here is a PHP script example of string concatenation:

<?php
echo 'Hello ' . "world! ";
?>
This script will print:
Hello world!

Download PHP Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How you can assign a new character in a String using PHP?How to compare the two strings with Comparison Operators in PHP?