next

It moves the internal array pointer of an array

Example

<?php
$lan = array(“PHP”,”JSP”,”ASP”);
echo next($lan);
?>

Output

JSP

Share