CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$color = "red";
$color = "green";
echo "$color";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "green";
echo "$color1" . "$color2";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "green";
echo "$color1" + "$color2";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "red";
echo "$color1" + "$color2";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "1";
echo "$color1" + "$color2";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "1";
$color2 = "1";
echo "$color1" + "$color2";
?>
-
What will be the output of the following PHP code ?
<?php
$color1 = "red";
$color2 = "1";
$color3 = "grey"
echo "$color1" + "$color2" . "$color3";
?>
-
What will be the output of the following PHP code ?
<?php
echo "This", "was", "a", "bad", "idea";
?>
-
What will be the output of the following PHP code ?
<?php
echo "This"."was"."a"."bad"."idea";
?>
-
What will be the output of the following PHP code ?
<?php
echo "This","was"|"a","bad"."idea";
?>