Question
What will be the output of the following php code
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
?>
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
?>
Answer: Option B
Was this answer helpful ?
.(dot) is used to combine two parts of the statement. Example ( $num . "Hello World ) will output 1Hello World.
Was this answer helpful ?
Submit Solution