Re: difference between indexed and associative arrays?

From: Date: Tue, 04 Apr 2017 22:09:19 +0000
Subject: Re: difference between indexed and associative arrays?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-326049@lists.php.net to get a copy of this message
<?php $a1 = array( 'one'=>'koala', 'two'=>'dingo', 'three'=>'kangaroo', 'four'=>'kookaburra', 'sixty'=>'wallaby' ); $a2= array( 'koala', 'gecko', 'bilbi', 'crocodile', 'wallaby' ); $diff = array_diff( $a1, $a2 ); print_r( $diff ); On Wed, Apr 5, 2017 at 7:54 AM, Jeffry Killen <jekillen@prodigy.net> 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#326049) next »