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
How to insert a line break in php string?
What is return value in php?
What is php session and how it works?
How to remove white spaces from the beginning and/or the end of a string in php?
What is magic function in php?
What does csrf token mean?
Do while loops php?
What is full form of PHP?
What is final keyword in php?
How to create a session? How to remove data from a session?
Explain $_FILES Superglobal Array?
What is difference between session and cookie in PHP?
Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?
What is the use of return in php?
What is the best php framework 2018?