Previous | Home | Next |
<html> <head> <title>using array shift </title> </head> <body> <?php $a= array ("Ram", "Rahim", "Rajesh", "Rakesh"); while (count ($a)) { $sv = array_shift ($a); echo " $sv ", "<BR>"; echo count ($a); echo "<BR>"; } ?> </body> </html>
Output:
Previous | Home | Next |