Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Using_the array_shift () Function

Tue Oct 28, 2008 1:30 am

Code:
<?php
  $music
= array ("A", "B", "C", "D");
  while (
count ($music)) {
     
$somevalue = array_shift ($music);
     echo
"$somevalue", "<BR>";
     echo
count ($music);
     echo
"<BR>";
  }
  
?>




Post a reply
  Related Posts  to : Using_the array_shift () Function
 php function     -  
 array_key_exists function use     -  
 function key recognition     -  
 Function Overloading     -  
 Using include function     -  
 finalize() function     -  
 The isset() Function     -  
 srand function example     -  
 Function Recursion     -  
 Using the array_slice () Function     -  

Topic Tags

PHP Arrays