"> What will be the output of the following php code < ?php $num = 1; $num1 "> " /> " />
Sail E0 Webinar
Question
What will be the output of the following php code
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
?>
Options:
A .  3
B .  1+2
C .  1.+.2
D .  Error
Answer: Option B


.(dot) is used to combine two parts of the statement. Example ( $num . "Hello World ) will output 1Hello World.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers