public static function array_next_element($arr, $nested_key, $iteration = 1)
    {
        foreach ($arr as $key => $v) {
            current($arr);

            if ($key == $nested_key) {
                for ($i = 0; $i < $iteration; $i++) {
                    $return = next($arr);
                }

                if (!empty($return)) {
                    return $return;
                } else {
                    return false;
                }
            }

            next($arr);
        }

        return false;
    }
public static function array_next_element($arr, $nested_key, $iteration = 1)
    {
        foreach ($arr as $key => $v) {
            current($arr);

            if ($key == $nested_key) {
                for ($i = 0; $i < $iteration; $i++) {
                    $return = next($arr);
                }

                if (!empty($return)) {
                    return $return;
                } else {
                    return false;
                }
            }

            next($arr);
        }

        return false;
    }
public static function array_next_element ( $ arr , $ nested_key , $ iteration = 1 ) { foreach ( $ arr as $ key => $ v ) { current ( $ arr ) ; if ( $ key == $ nested_key ) { for ( $ i = 0 ; $ i < $ iteration ; $ i ++ ) { $ return = next ( $ arr ) ; } if ( ! empty ( $ return ) ) { return $ return ; } else { return false ; } } next ( $ arr ) ; } return false ; }
return the next element of a specific key

@param $arr
@param $nested_key
@param int $iteration
@internal param $ $

@return bool|mixed
@code

@endcode
return the next element of a specific key