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 default session time in php?
How to redirect a page in php?
What is the default time in seconds for which session data is considered valid?
Why should I store logs in a database rather than a file?
Write a program in php to find the occurrence of a word in a string?
Explain how we can get the number of elements in an array?
Does php need html?
How to Retrieve a Cookie Value?
What is array filter php?
/temp is a type of filesystem directory. State Whether True or False?
Do I need to install php after xampp?
What is overriding in php?
What is htaccess? Why do we use this and where?
Explain object-oriented methodology in php?
Explain me how to include a file to a php page?