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
How to move uploaded files to permanent directory?
What is http get and post?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
What are sql functions?
What is mysqli php?
What kind of variable is age?
Which is faster for or foreach?
Explain about PHP cookies?
How to redirect a url from http to https in .htaccess?
What is uniqid php?
What is the difference between for and foreach loop in php?
what is mean by portal
Tell me how is it possible to remove escape characters from a string?
How to find the length of a string?
Explain type casting and type juggling.