Sr. PHP Programmer Question:
Download Questions PDF

How will you concatenate two strings in PHP?

Answer:

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

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?