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
What are the rules to declare a php variables?
What is array and function?
Which function would you use to format date information in php?
What is the difference between associative array and indexed array?
How can you declare a constant variable in php?
Tell me how is it possible to parse a configuration file?
What is "print" in php?
How to execute an sql query? How to fetch its result?
Is key in array php?
What is the difference between php4 and php5?
What is mysqli_query?
Do you know design patterns. List few?
How would you open a directory for reading in php?
Why shouldn't I use mysql_* functions in php?
What is an associative array?