Discussion :: PHP - CS
-
What will be the output of the following php code?
<?php
$num = "1";
$num1 = "2";
print $num+$num1;
?>
Answer : Option A
Explanation :
The numbers inside the double quotes are considered as integers and not string, therefore the value 3 is printed and not 1+2.
Be The First To Comment