In php, why "1"+"1" when added and echo gives 2 isn't putting inside a double quote makes the number string?
<?php
$x = "1";
$y = "3";
$z = $x + $y;
echo($z); // this print 4
?>
Also, if we take this example, since, the value in the variable is inside the double quote and if you use a single quote to print the below expression why it prints $x + $y = $z
<?php
$x = "1";
$y = "3";
$z = $x + $y;
echo '$x + $y = $z'; // prints $x + $y = $z
?>