note 81799 deleted from function.array-count-values by crell

From: Date: Tue, 12 Apr 2022 01:03:18 +0000
Subject: note 81799 deleted from function.array-count-values by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218170@lists.php.net to get a copy of this message
Note Submitter: Hayley Watson ---- Yet Another case-insensitive version of array_count_values() <?php $ar = array('J. Karjalainen', 'J. Karjalainen', 60, '60', 'J. Karjalainen', 'j. karjalainen', 'Fastway', 'FASTWAY', 'Fastway', 'fastway', 'YUP'); $ar = array_count_values(array_map('strtolower', $ar)); ?>

« previous php.notes (#218170) next »