I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / vipul dalwala
$a = array('a','b','c','d','f','g','h','i','j','k');
array_splice($a, 0, 5);
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
Explain the changes in php versions?
What is the difference between print() and echo()?
What is the difference between characters 23 and x23?
Which array function checks if the particular key exists in the array?
Describe which programming language does php parallel to?
Which is not a file-related function in php?
What is meant by pear in php? What is the purpose of it?
How do http requests work?
What is the difference between laravel and php?
What is $_ request?
What are the disadvantages of php?
Does php need a closing tag?
What is csrf verification?
What happens when submit button is clicked?
what is benefit of magento?