What will be the output of the following PHP code? <?php $a = “”; if ($a) print “all”; if ______ else print “some”; ?>
Advertisements
प्रश्न
What will be the output of the following PHP code?
<?php
$a = “”;
if ($a)
print “all”;
if ______
else
print “some”;
?>पर्याय
all
some
error
no output
MCQ
Advertisements
उत्तर
error
shaalaa.com
Php Conditional Statements
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
What will be the output of the following PHP code?
<?php
$x;
if ($x)
print “hi” ;
else
print “how are u”;
?>What will be the output of the following PHP code?
<?php
$x = 0;
if ($x++)
print “hi”;
else
print “how are u”;
?>What will be the output of the following PHP code?
<?php
$x;
if ($x == 0)
print “hi” ;
else
print “how are u”;
print “hello”
?>What will be the output of the following PHP code?
<?php
$x = 10;
$y = 20;
if ($x > $y + $y != 3)
print “hi” ;
else
print “how are u”;
?>Define Conditional Statements in PHP.
List out Conditional Statements in PHP.
Write the features Conditional Statements in PHP.
Differentiate between the switch and if-else statements.
Explain the Function of Conditional Statements in PHP.
Explain the working of Conditional Statements in PHP?
