note 112524 deleted from language.types.array by cmb

From: Date: Fri, 15 May 2015 18:37:26 +0000
Subject: note 112524 deleted from language.types.array by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-202533@lists.php.net to get a copy of this message
Note Submitter: harry at ddtechnologies dot com ---- PHP array_diff_assoc() Function You can compare the keys and values of two arrays, and return the differences: <?php $a1=array("red","green","blue","yellow"); $a2=array("red","green","blue"); $result=array_diff_assoc($a1,$a2); print_r($result); ?> http://www.show-ip.org

« previous php.notes (#202533) next »