I have 10 elements of Array, how can i remove 5 array
element, with single function.
Answer Posted / shaik abdul raheem
<?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';
unset($a[4]);
for($b=0;$b<=count($a);$b++)
{
echo $a[$b]."<br>";
}
?>
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Tell me how to execute an sql query? How to fetch its result?
Is php front end?
Which will start a session?
What is the meaning of php?
What is php session id?
How does php work?
What is the function mysql_pconnect() usefull for?
What is compact function php?
What are the methods useful for method overloading?
How long is csrf token?
Who developed php?
What is the default time of cookie in php?
What is php session start?
What is polymorphism?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?