Re: Proposal for a new array function
| From: | Lester Caine | Date: | Mon, 08 Feb 2016 15:54:12 +0000 |
| Subject: | Re: Proposal for a new array function | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91118@lists.php.net to get a copy of this message | ||
On 08/02/16 15:42, Pierre Joye wrote:
>> I want to propose a new PHP array method, called has_numeric_keys (or
>> > something similar/better), that would have the following method signature:
>> >
>> > bool has_numeric_keys(array $array)
> I have no strong opinion on it but I wonder if it should have a recursive
> version as well, if accepted. I see it a bit like array_walk.
I did wonder about that one, especially when DB queries tend to return a
list of numeric keyed records which may be numeric or named arrays ...
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk