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
Is it more secure to use cookies to trfer session ids?
What is PHP? Who is the father or inventor of PHP?
How to call php function from javascript using ajax?
What are the advantages of php mysql?
Which function is used to read a single character from a file in PHP.
What websites use php?
Do you know what is the function func_num_args() used for?
How do I start a php session?
Why do we use session?
What is mvc in php?
How can you compare objects in php?
What is difference between ksort() and usort() functions.
What are advantages of .htaccess?
What is the default time of cookie in php?
How to receive a cookie from the browser?