Computer Science, asked by joseph7627, 1 year ago

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 choudhary21
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); ?>

Attachments:
Answered by GhaintMunda45
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