note 122668 deleted from function.array-unique by crell

From: Date: Tue, 12 Apr 2022 00:51:54 +0000
Subject: note 122668 deleted from function.array-unique by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218167@lists.php.net to get a copy of this message
Note Submitter: Matt S ---- In case you are looking for a function that works like array_unique but does not do the string conversion first. <?php function array_unique_full($arr, $strict = false) { return array_filter($arr, function($v, $k) use ($arr, $strict) { return array_search($v, $arr, $strict) === $k; }, ARRAY_FILTER_USE_BOTH); } ?>

« previous php.notes (#218167) next »