Re: Re: problem with array diff, need to reindex array according

From: Date: Tue, 26 Apr 2005 17:20:46 +0000
Subject: Re: Re: problem with array diff, need to reindex array according
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-213944@lists.php.net to get a copy of this message
Angelo Zanetti wrote:
sorry I'm not using array_diff_assoc just array_diff...
/* Should also be able to re-index the diff of two arrays */ $diff = array_values(array_diff($a, $b));

« previous php.general (#213944) next »