pos

It is an alias of current()

Example

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

Output

JSP

Share