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     -  
 Using the array_slice () Function     -  
 Function return more than one value     -  
 Nested function     -  
 array_key_exists function use     -  
 function key recognition     -  
 Function Overloading     -  
 Using include function     -  
 finalize() function     -  
 The isset() Function     -  

Topic Tags

PHP Arrays