What will be the output of the following PHP code? <?php $age = array("Harry" => "21", "Ron" => "19", "Malfoy" ...
View Question
What will be the output of the following PHP code?
<?php
$array = array(“red”, “green”);
array_push($array, “blue”, “yellow”);
print_r($array);
?>
What will be the output of the following PHP code? <?php $array = array("red", "green"); array_push($array, "blue", "yellow"); print_r($array); ?> a) Array ...
View Question
What will be the output of the following PHP code?
<?php
$number = range(0, 5);
print_r ($number);
?>
What will be the output of the following PHP code? <?php $number = range(0, 5); print_r ($number); ?> a) Array ( ...
View Question
What will be the output of the following PHP code?
<?php
$people = array(“Peter”, “Susan”, “Edmund”, “Lucy”);
echo pos($people);
?>
What will be the output of the following PHP code? <?php $people = array("Peter", "Susan", "Edmund", "Lucy"); echo pos($people); ?> a) ...
View Question
What will be the output of the following PHP code?
<?php
$city_west = array(“NYC”, “London”);
$city_east = array(“Mumbai”, “Beijing”);
print_r(array_replace($city_west, $city_east));
?>
What will be the output of the following PHP code? <?php $city_west = array("NYC", "London"); $city_east = array("Mumbai", "Beijing"); print_r(array_replace($city_west, $city_east)); ?> a) ...
View Question
What will be the output of the following PHP code?
<?php
$a = array(“a” => “Jaguar”, “b” => “Land Rover”,
“c” => “Audi”, “d” => “Maseratti”);
echo array_search(“Audi”, $a);
?>
What will be the output of the following PHP code? <?php $a = array("a" => "Jaguar", "b" => "Land Rover", ...
View Question
What will be the output of the following PHP code?
<?php
$a = array(12, 5, 2);
echo(array_product($a));
?>
What will be the output of the following PHP code? <?php $a = array(12, 5, 2); echo(array_product($a)); ?> a) 024 b) 120
View Question
What will be the output of the following PHP code?
<?php
$a1 = array(“a” => “red”, “b” => “green”, “c” => “blue”, “d” => “yellow”);
$a2 = array(“e” => “red”,”f” => “green”, “g” => “blue”);
$result = array_intersect($a1, $a2);
print_r($result);
?>
What will be the output of the following PHP code? <?php $a1 = array("a" => "red", "b" => "green", "c" ...
View Question
What will be the output of the following PHP code?
<?php
$a1 = array(“a” => “red”, “b” => “green”, “c” => “blue”, “d” => “yellow”);
$result = array_flip($a1);
print_r($result);
?>
What will be the output of the following PHP code? <?php $a1 = array("a" => "red", "b" => "green", "c" ...
View Question
What will be the output of the following PHP code?
<?php
$age = array(“Harry” => “21”, “Ron” => “23”,”Malfoy” => “21”);
array_pop($age);
print_r(array_change_key_case($age, CASE_UPPER));
?>
What will be the output of the following PHP code? <?php $age = array("Harry" => "21", "Ron" => "23","Malfoy" ...
View Question