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


Please Help Members By Posting Answers For Below Questions

Is PHP an open source software?

582


What is php constructor?

543


Can php variables have numbers?

533


Tell me are parent constructors called implicitly inside a class constructor?

545


Why is php so popular?

519






What does the unset() function mean?

567


How can we submit form without a submit button?

558


Where do we use get and post?

531


What is php glob?

571


What is the purpose of break and continue statement?

526


How to call a php function from another php file?

508


Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?

550


What is Different between Joomla And Magento?

2275


Which is better php or nodejs?

518


Do you know what is the differences between $a != $B and $a !== $B?

500