PHP Programing language

Write A Program to using the Array shift function
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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: