Web lists-archives.com

Re: [PHP] difference between indexed and associative arrays?




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