I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / phani
$output = array_splice($input, 0, 5));
print_r($output);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to include a file to a PHP page?
What are the main error types in php and how do they differ?
Can I learn php without knowing c?
What are new features in php 7?
What is the use of "ksort" in php?
What is full form of php? Who is the father or inventor of php?
Does mysql need php?
Is php used anymore?
What can php do?
What are the 5 types of variables?
What percentage of websites use php?
What is mysql in php?
How to access a global variable inside a function?
Explain me is multiple inheritance supported in php?
What is global array in php?