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
What is the use of addslashes in php?
How does firefox manage cookies?
How do I update php?
Can you define an argument as a reference type?
Is nan in javascript?
What is chrome logger?
What are session variables in php?
How to move uploaded files to permanent directory?
How to run the interactive php shell from the command line interface?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
How many records can be stored in mysql table?
Is php fully object oriented?
How can we determine whether a variable is set?
What is the functionality of md5 function in php?
What is design pattern? Explain all including singleton pattern?