I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / vepurnaresh
Hi guys...this is one of the answer i found and tested in my
dreamweaver make use of it....
<?php
$a = array('a','b','c','d','f','g','h','i','j','k');
array_splice($a, 0, 5);
for($b=0;$b<=count($a);$b++)
{
echo $a[$b]."<br>";
}
?>
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why should I learn php?
What is static variable in php?
How to check whether a number is prime or not?
What is php mainly used for?
How to create reusable code in php?
What are the encryption functions in php?
Is runtime polymorphism overriding?
How can we encrypt the password using php?
Distinguish between urlencode and urldecode?
How do you display the output directly to the browser?
Explain what does the function get_magic_quotes_gpc() means?
Do you know how to declare an array in php?
How arrays are passed through arguments?
What does nan stand for computer science?
How can you get the size of an image in PHP?