Req #31058 [Opn]: array_change_key_case recursive option
| From: | aharvey@php.net | Date: | Fri, 24 Sep 2010 08:27:41 +0000 |
| Subject: | Req #31058 [Opn]: array_change_key_case recursive option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154610@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=31058&edit=1
ID: 31058
Updated by: aharvey@php.net
Reported by: veeeee at gmail dot com
Summary: array_change_key_case recursive option
Status: Open
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
PHP Version: 5.0.2
Block user comment: N
New Comment:
Re-requested in request #52917.
Previous Comments:
------------------------------------------------------------------------
[2004-12-10 21:53:24] veeeee at gmail dot com
Description:
------------
It would be quite handy were there an option (optional 3rd parameter) to
array_change_key_case so that it would recurse into multi-dimensional
arrays so one would not need to create work arounds such as:
function ack_r($array, $case)
{
$array = array_change_key_case($array, $case);
foreach ($array as $key => $value) {
if ( is_array($value) ) {
$array[$key] = ack_r($value, $case);
}
}
return $array;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=31058&edit=1