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
How to access a specific character in a string?
Which programming language does php resemble to?
Is php an array?
What is input sanitization in php?
What is the current stable version of php?
What is difference between Method overriding and overloading in PHP?
How to take a substring from a given string?
What is session data?
What the use of var_dump()?
How can we increase execution time of a php script?
How does php strcmp work?
What is difference between compile time and run time polymorphism?
How do you connet mysql database with php?
What are the advantages of object-oriented programming in php?
How can you tell if a number is even or odd without using any condition or loop?