What will be the output of the following PHP code ?
<?php function test($int) { if ($int == 1) echo "This Works"; if ($int == 2) echo "This Too Seems To Work"; } test(1); TEST(2); ?>
A.This Works
B.This Too Seems To Work
C.This WorksThis Too Seems To Work
D.ERROR
Answers
Answered by
0
What will be the output of the following PHP code ?
C.This WorksThis Too Seems To Work
<?php function test
($int) { if ($int == 1)
echo "This Works";
if ($int == 2) echo
"This Too Seems To Work"; }
test(1); TEST(2); ?>
C.This WorksThis Too Seems To Work
<?php function test
($int) { if ($int == 1)
echo "This Works";
if ($int == 2) echo
"This Too Seems To Work"; }
test(1); TEST(2); ?>
Attachments:
Answered by
0
Input :
<?php
function test($int)
{
if ($int == 1)
echo "This Works";
if ($int == 2)
echo "This Too Seems To Work";
}
test(1);
TEST(2);
?>
Output :
This is a case sensitive matter.
Similar questions
India Languages,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Business Studies,
1 year ago
English,
1 year ago