ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?php
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_splice ($fruits, 2);
print_r ($fruits);
?>

Answer & Solution
Correct Answer: Option C
The array_splice() function removes all elements of an array found within a specified range.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.