?
What will be the output of the following php code?
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 & Solution
Correct Answer:
Option
B
.(dot) is used to combine two parts of the statement. Example ( $num . “Hello World” ) will output 1Hello World.
Join the Discussion
Login to post a comment or share your explanation.
Login