-
What will be the output of the following PHP code?
<?php
$Country = array("INDIA", "ENGLAND", "ISRAEL", "USA");
array_pop($Country);
print_r($Country);
?>
-
-
Array
(
[0] => INDIA
[1] => ENGLAND
[2] => ISRAEL
) - Error
-
Array
(
[2] => ISRAEL
) - Nothing
- None of these
-
Correct Option: A
The array_pop() function deletes the last element of an array.