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
Is php developer in demand?
What types of Data Can Be Used as Array Keys?
What is super keyword in php?
How to check a variable is an array or not in php?
Is php open source?
What is the use of trim in php?
What are php functions?
What is meant by public, private, protected, static and final scopes?
Is php worth learning in 2019?
What is php trait?
Do you know what is the function func_num_args() used for?
What is the use of super-global arrays in php?
What is ci framework in php?
What is the use of mvc in php?
What is uri routing?