Voting

: five plus three?
(Example: nine)

The Note You're Voting On

john at doe dot com
17 years ago
<?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;
}
?>

<< Back to user notes page

To Top