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 do we use hooks?
Explain array_uintersect()?
Where are the persistent cookies stored on your computer?
How to create a mysql connection in php?
What is meant by MIME?
What is phpsessid?
What is basic php?
How to redirect https to http url through .htaccess?
How to get best php developer Experience in Php with Sugar CRM / VTiger.
What is composer phar?
What is namespace in php?
What is the importance of "method" attribute in a html form?
What advance thing in php7?
What is isset and unset in php?
What are the differences between session and cookie?