Re: Proposal for a new array function
| From: | Christian Wenz | Date: | Thu, 11 Feb 2016 09:17:22 +0000 |
| Subject: | Re: Proposal for a new array function | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-91196@lists.php.net to get a copy of this message | ||
On Mon, Feb 8, 2016 at 09:32 AM, Matthew Setter wrote:
The approach I took was this: return array_keys($arr) !== range(0, count($arr) - 1);FWIW, this might not work for arrays with missing indices like [0 => 'a', 2 => 'b'] I personally would appreciate a function like you proposed. --Christian