CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$x;
echo "$x";
?>
-
What will be the output of the following PHP code ?
<?php
$x = 5;
{
$x = 10;
echo "$x";
}
echo "$x";
?>
-
What will be the output of the following PHP code ?
<?php
$x = 5;
{
echo "$x";
}
?>
-
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
echo "$x";
}
fun();
?>
-
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
$x = 10;
echo "$x";
}
fun();
echo "$x";
?>
-
What will be the output of the following PHP code ?
<?php
$x = 5;
function fun()
{
$x = 10;
echo "$x";
}
fun();
echo "$x";
?>
-
What will be the output of the following PHP code ?
<?php
$x = 4;
$y = 3;
function fun($x = 3, $y = 4)
{
$z = $x+$y/$y+$x;
echo "$z";
}
echo $x;
echo $y;
echo $z;
fun($x, $y);
?>
-
What will be the output of the following PHP code ?
<?php
$x =4;
$y = 3;
function fun($x, $y)
{
$z = $x + $y / $y + $x;
echo "$z";
}
echo $x;
echo $y;
echo $z;
fun(3, 4);
?>
-
What will be the output of the following PHP code ?
<?php
function fun($x,$y)
{
$x = 4;
$y = 3;
$z = $x + $y / $y + $x;
echo "$z";
}
fun(3, 4);
?>
-
What will be the output of the following PHP code ?
<?php
$x = 3, 4, 5, 6;
echo "$x";
?>