MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz
→
What will be the output of the following PHP code?...
1.
What will be the output of the following PHP code?$color = "maroon"; $var = $color[2]; echo "$var";
A.
a
B.
Error
C.
$var
D.
r
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
PHP files have a default file extension of..
What will be the output of the following PHP code ? $a = ""; if ($a) print "all"; if else print "some";
What will be the output of the following PHP code ? $a = 10; if (0) print "all"; if else print "some"
What will be the output of the following PHP code ? $a = 10; if (1) print "all"; else print "some" else print "none";
What will be the output of the following PHP code ? $a = 1; if (print $a) print "True"; else print "False";
What will be the output of the following PHP code ? $a = 1; if (echo $a) print "True"; else print "False";
What will be the output of the following PHP code ? $a = 1; if ($a--) print "True"; if ($a++) print "False";
What will be the output of the following PHP code ? $x = 0; if ($x == 1) if ($x >= 0) print "true"; else print "false";
What will be the output of the following PHP code ? $x; if ($x == 0) print "hi" ; else print "how are u"; print "hello";
What will be the output of the following PHP code?$team = "arsenal"; switch ($team) { case "manu": echo "I love man u"; case "arsenal": echo "I love arsenal"; case "manc": echo "I love manc"; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies