How will you concatenate two strings in PHP?
To concatenate two string variables together, use the dot
(.) operator.
1 2 3 4 5 |
<?php $string1 = "Hello "; $string2 = "PHP"; echo $string1 . $string2; ?> |
Learn more about the similar topics?
Tutorials
Interview Questions & Answers
Exercises & Assignments