note 124192 added to function.array-change-key-case
| From: | shaman_master.list.ru via php-notes | Date: | Thu, 12 Sep 2019 10:10:21 +0000 |
| Subject: | note 124192 added to function.array-change-key-case | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-212174@lists.php.net to get a copy of this message | ||
<?php
/**
* Convert keys in an array.
*
* @param array $array Source data
* @param callable $callback Function name (strtolower, strtoupper, ucfirst, lcfirst, ucwords)
* @return array
*/
function array_convert_key_case(array $array, callable $callback = 'strtolower')
{
return array_combine(
array_map($callback, array_keys($array)),
array_values($array)
);
}
?>
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.168 (proxied: 31.129.195.223)
----
Manual Page -- http://php.net/manual/en/function.array-change-key-case.php
Edit -- https://master.php.net/note/edit/124192
Del: integrated -- https://master.php.net/note/delete/124192/integrated
Del: useless -- https://master.php.net/note/delete/124192/useless
Del: bad code -- https://master.php.net/note/delete/124192/bad+code
Del: spam -- https://master.php.net/note/delete/124192/spam
Del: non-english -- https://master.php.net/note/delete/124192/non-english
Del: in docs -- https://master.php.net/note/delete/124192/in+docs
Del: other reasons-- https://master.php.net/note/delete/124192
Reject -- https://master.php.net/note/reject/124192
Search -- https://master.php.net/manage/user-notes.php