note 78056 added to function.array-change-key-case
| From: | john at doe dot com | Date: | Wed, 26 Sep 2007 07:04:53 +0000 |
| Subject: | note 78056 added to function.array-change-key-case | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130793@lists.php.net to get a copy of this message | ||
<?php
function array_change_value_case($input, $case = CASE_LOWER)
{
$aRet = array();
if (!is_array($input))
{
return $aRet;
}
foreach ($input as $key => $value)
{
if (is_array($value))
{
$aRet[$key] = array_change_value_case($value, $case);
continue;
}
$aRet[$key] = ($case == CASE_UPPER ? strtoupper($value) : strtolower($value));
}
return $aRet;
}
?>
----
Server IP: 212.124.37.9
Probable Submitter: 62.214.236.197
----
Manual Page -- http://www.php.net/manual/en/function.array-change-key-case.php
Edit -- https://master.php.net/note/edit/78056
Del: integrated -- https://master.php.net/note/delete/78056/integrated
Del: useless -- https://master.php.net/note/delete/78056/useless
Del: bad code -- https://master.php.net/note/delete/78056/bad+code
Del: spam -- https://master.php.net/note/delete/78056/spam
Del: non-english -- https://master.php.net/note/delete/78056/non-english
Del: in docs -- https://master.php.net/note/delete/78056/in+docs
Del: other reasons-- https://master.php.net/note/delete/78056
Reject -- https://master.php.net/note/reject/78056
Search -- https://master.php.net/manage/user-notes.php