Re: [PHP] difference between indexed and associative arrays?
[email protected] (AshleySheridan)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2017-04-04 at 14:54 -0700, Jeffry Killen wrote: > > Is there a function that will produce the difference between indexed and > > associative arrays, without actually testing for string or integer indices? > > > (Although I realize that arrays can be mixed string and integer indeces.) > > Thank you for time and attention. > JK > Have you looked at http://php.net/manual/en/function.array-diff-key.php ? I don't understand fully what you want from your question, but array_diff_key() looks like a good place to start. -- Thanks, Ash http://www.ashleysheridan.co.uk