I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / vipul dalwala
Hi Yukti,
You can also use array_slice but array_splice is also not
the wronng one.
array_splice function can take four arguments if you omit
the fourth argument which is for replacement array this
function will serve the same purpose as array_slice.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are super global variables in php?
When should you use a stored procedure?
Explain the importance of the function htmlentities.
Explain array_uintersect()?
What are the popular frameworks in php?
What is use of isset function in php?
Why do we use php?
Differences between get, post and request methods ?
What are the differences between GET and POST methods?
What does == mean in php?
Explain what does $_files means?
Tell us how to create an array of a group of items inside an html form?
Can you give example for trait in php?
Tell me how can we pass the variable through the navigation between the pages?
Is empty in php?