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
Tell me how can we get the error when there is a problem to upload a file?
Why do we use interface in php?
What is difference between static and constant in php?
What is isset function in php?
How can we create a database using php?
What is the use of mysql_real_escape_string() function?
Which variable declarations within a class is invalid in php?
How do I install php and apache on windows 10?
How do I run php?
Could we start a variable with number like $4name?
How many ways to include array elements in double-quoted strings using php?
What is x+ mode in fopen() used for?
What are the four scalar types of php?
How to make database connection in php?
How do I know my xampp version?