ExamVeda
Login
Home
This question belongs to PHP Basic PHP
Basic PHP
?

What will be the output of the following php code?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.