-
What will be the output of the following PHP code?
<?php
$num = array ("Zero","One", "Two", "Three", "Four","Five");
$subset = array_splice ($num, 3);
print_r ($subset);
?>
-
-
Array
(
[0] => Three
[1] => Four
[2] => Five
) -
Array
(
[0] => Three
[1] => Four
[2] => Five
[3] => Zero
) - Error
- Nothing
- None of these
-
Correct Option: A
The array_splice() function removes all elements of an array found within a specified range.