Sr. PHP Programmer Question:
Download Questions PDF

How will you concatenate two strings in PHP?


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

$string1="Global Guideline";
echo $string1 . " " . $string2;

This will produce following result:
Global Guideline Interviews

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me In how many ways you can embed PHP code in an HTML page?How will you make a check that a cookie is set or not?