PHP next() function is used to move the current pointer of an array to the next position and return the value on that position. It is an inbuilt function of PHP.
$array is a PHP array.
<?php $arr1 = array("apple","orange","banana","fig",); $next_value=next($arr1); echo $next_value; // it will print orange ?>
You May Also Like
Subscribe To Never Miss an Article From