adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code ?
<?php
$a = 100;
if ($a > 10)
    printf("M.S. Dhoni");
else if ($a > 20)
    printf("M.E.K Hussey");
else if($a > 30)
    printf("A.B. de villiers");
?>

a.

M.S.Dhoni

b.

M.E.K.Hussey

c.

.S.Dhoni
M.E.K.Hussey
A.B.de villiers

d.

No output

Posted under PHP

Answer: (a).M.S.Dhoni

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code ?