CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$one = "Hello";
$two = "World";
echo $one, $two;
?>
-
What will be the output of the following PHP code ?
<?php
$one = "Hello";
$two = "World";
echo "$one$two";
?>
-
What will be the output of the following PHP code ?
<?php
$one = "Hello";
$two = "World";
echo "$one"+"$two";
?>
-
What will be the output of the following PHP code ?
<?php
echo "This is India";
?>
-
What will be the output of the following PHP code ?
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "My car is a {$cars[0]}";
?>
-
What will be the output of the following PHP code ?
<?php
print "echo hello world";
?>
-
What will be the output of the following PHP code ?
<?php
$one = 1;
print($one);
print $one;
?>
-
What will be the output of the following PHP code ?
<?php
$cars = array("Volvo", "BMW", "Toyota");
print $cars[2];
?>
-
What will be the output of the following PHP code ?
<?php
$one = "one";
$two = "two";
print($one$two);
?>
-
What will be the output of the following PHP code ?
<?php
$one = "one";
$two = "two";
print($one,$two);
?>