In this program written in PHP programming language, what output will compiler print?
Program Input:
<?php
$a = "5";
$b = 5;
echo $a + $b;
?>
‐---------------------------------------------
Program Output:
?
Answers
In this program written in PHP programming language, what output will compiler print?
Program Input:
<?php
$a = "5";
$b = 5;
echo $a + $b;
?>
‐---------------------------------------------
Program Output:
?
Program Input:
<?php
$a = "5";
$b = 5;
echo $a + $b;
?>
‐---------------------------------------------
Program Output :-
Error
Error
a+b
➡ If you need to output something onto the screen you’ll need to use echo or print_r.
____________________________________
Question?
In this program written in PHP programming language, what output will compiler print?
Program Input:
<?php
$a = "5";
$b = 5;
echo a +a+b;
?>
‐---------------------------------------------
Program Output:
?
AnSweR:−
Program Input:
<?php
$a = "5";
$b = 5;
echo a +a+b;
?>
‐---------------------------------------------
Program Output :-
Error
Error
a+b
➡ If you need to output something onto the screen you’ll need to use echo or print_r.
____________________________________