update page now
Longhorn PHP 2026 - Call For Papers

Voting

: six minus zero?
(Example: nine)

The Note You're Voting On

Matteo Galletti
4 years ago
Polyfill implementation for PHP versions lower than 8.1.

<?php
if (!function_exists('array_is_list'))
{
    function array_is_list(array $a)
    {
        return $a === [] || (array_keys($a) === range(0, count($a) - 1));
    }
}
?>

<< Back to user notes page

To Top