Sr. PHP Programmer Question:

How will you concatenate two strings in PHP?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

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


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?