Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$x = "test";
$y = "this";
$z = "also";
$x .= $y .= $z ;
echo $x;
echo $y;
?>
Answer : Option C
Explanation :
The x .= y is a shorthand for x = x.y and this is evaluated from right to left.
Be The First To Comment