I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / phani
$output = array_splice($input, 0, 5));
print_r($output);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between for and foreach in php?
Is it possible to use com component in php?
Explain how we can retrieve the data in the result set of mysql using php?
what is session_set_save_handler in PHP?
What is string in php?
What are examples of independent and dependent variables?
How to make horizonatl menu and vertical menu responsive
What is the static variable in function useful for?
How can a cross-site scripting attack be prevented by php?
What is htmlentities function in php?
What does odbc do in context with php?
What is a php object?
What does == mean in php?
What is the use of @ in php?
Explain how can we execute a php script using command line?