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
What do you mean by core php?
Explain me how failures in execution are handled with include() and require() functions?
Is strcmp case sensitive?
Why would we use === instead of ==?
Do you know how to enable error reporting in php?
Is age a variable in research?
What is cookie?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is a namespace in php?
Is php outdated 2019?
How to repeat a string to a specific number of times in php?
How to redirect https to http url through .htaccess?
What is difference between variable declaration and variable definition?
What is the difference between print() and echo() in PHP?
What does $_ post mean in php?