note 126574 added to function.array-is-list

From: Date: Wed, 10 Nov 2021 18:30:20 +0000
Subject: note 126574 added to function.array-is-list
Groups: php.notes 
Request: Send a blank email to php-notes+get-217179@lists.php.net to get a copy of this message
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)); } } ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 2.35.142.135) ---- Manual Page -- https://php.net/manual/en/function.array-is-list.php Edit -- https://main.php.net/note/edit/126574 Del: integrated -- https://main.php.net/note/delete/126574/integrated Del: useless -- https://main.php.net/note/delete/126574/useless Del: bad code -- https://main.php.net/note/delete/126574/bad+code Del: spam -- https://main.php.net/note/delete/126574/spam Del: non-english -- https://main.php.net/note/delete/126574/non-english Del: in docs -- https://main.php.net/note/delete/126574/in+docs Del: other reasons-- https://main.php.net/note/delete/126574 Reject -- https://main.php.net/note/reject/126574 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217179) next »