I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / dhir
<?php
$a[0]='a';
$a[1]='b';
$a[2]='c';
$a[3]='d';
$a[4]='f';
$a[5]='g';
$a[6]='h';
$a[7]='i';
for($b=0;$b<=4;$b++)
{
$a=shift($a[$b]);
}
?>
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Which is better wamp or xampp?
write a note on Testing the web site
How to set cookies in PHP?
Tell me will a comparison of an integer 12 and a string "13" work in php?
Why do we use namespace in php?
Is empty array php?
What does $_cookie mean?
What does the unlink() function mean?
Explain the difference between $message and $$message?
What's the difference between __sleep and __wakeup?
What is difference between session and cookie in PHP?
What is $_ get in php?
Please explain is it possible to use com component in php?
What is Apache's configuration file typically called?
What is the difference between $var and $$var?