next

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Advance the internal pointer of an array
<?php next(array|object &$array): mixed
<?php     {

        $pointerArray = ['Taylor', 'Otwell'];



        next($pointerArray);



        return [

            ['/:[a-z_]+/', ['8:30', '9:00'], 'The event will take place between :start and :end', 'The event will take place between 8:30 and 9:00'],
<?php                 $offset += strlen($matches[0]);

            } else {

                next($patterns);

            }

        }