Answers

Question and Answer:

  Home  Senior PHP Programmer

⟩ How will you concatenate two strings in PHP?

To concatenate two string variables together, use the dot (.) operator −

<?php

$string1="Global Guideline";

$string2="Interviews";

echo $string1 . " " . $string2;

?>

This will produce following result:

Global Guideline Interviews

 177 views

More Questions for you: