next Advance the internal array pointer of an array : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

next Advance the internal array pointer of an array




<?php
   $fruits = array("apple""orange""banana");
   print_r($fruits);
   $fruit = next($fruits)// returns "orange"
   echo "Next fruit: $fruit<br />";
   $fruit = next($fruits)// returns "banana"
   echo "Next fruit: $fruit<br />";
?>
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function