note 26925 deleted from function.array-change-key-case by didou
| From: | didou@php.net | Date: | Sat, 27 Jan 2007 00:10:35 +0000 |
| Subject: | note 26925 deleted from function.array-change-key-case by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122251@lists.php.net to get a copy of this message | ||
Note Submitter: euphoria{AT}netdoor.org
----
Just a note, this function kills any name-clashes! Say you had:
$array = array('key1' => 'abc', 'key2' => 'def',
'KEY1' => 'ghi');
$array = array_change_key_case($array);
then you would end up with:
Array
(
[key1] => ghi
[key2] => def
)
(Change .org to .com to e-mail me)
Armond