I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / yukti vig
thats should be array_slice
array_splice is used remove a portion of the array and
replace it with something else
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Is PHP an open source software?
What is php constructor?
Can php variables have numbers?
Tell me are parent constructors called implicitly inside a class constructor?
Why is php so popular?
What does the unset() function mean?
How can we submit form without a submit button?
Where do we use get and post?
What is php glob?
What is the purpose of break and continue statement?
How to call a php function from another php file?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
What is Different between Joomla And Magento?
Which is better php or nodejs?
Do you know what is the differences between $a != $B and $a !== $B?