prev

It rewinds the internal array pointer

Example

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

Output

PHP

Share