PHP 8.4.24 Released!

Voting

: min(six, one)?
(Example: nine)

The Note You're Voting On

notImportant
8 years ago
a more readable version of papipo's has_next function:

<?php
function has_next($array) {
    $has_next = is_array($array) && next($array) !== false;

    return $has_next;
}
?>

OR

<?php
function has_next($array) {
    $has_next = false;
    if(is_array($array)) {
        $has_next = next($array) !== false;
    }

    return $has_next;
}
?>

<< Back to user notes page

To Top