PHP Arrays
What will be the output of the following PHP code ?
$people = array("Peter", "Susan", "Edmund", "Lucy");
echo pos($people);

Lucy
Susan
Edmund
Peter

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code ?
$city_west = array("NYC", "London");
$city_east = array("Mumbai", "Beijing");
print_r(array_replace($city_west, $city_east));

Array ( [1] => Mumbai [0] => Beijing )
Array ( [1] => NYC [0] => London )
Array ( [0] => Mumbai [1] => Beijing )
Array ( [0] => NYC [1] => London )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$place = array("NYC", "LA", "Paris");
array_pop($place);
$place1 = array("Paris");
$place = array_merge($place, $place1);
print_r($place);

Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris )
Array ( [0] => NYC [1] => LA [2] => Paris)
Array ( [0] => LA [1] => Paris [2] => Paris )
None of the mentioned

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What array will you get if you convert an object to an array?

An array with properties of that array as the object's elements
An array with properties of that object as the Key elements
An array with keys of that object as the array's elements
An array with properties of that object as the array's elements

ANSWER DOWNLOAD EXAMIANS APP