note 86532 modified in function.strtolower by danbrown
| From: | danbrown@php.net | Date: | Thu, 23 Oct 2008 16:06:03 +0000 |
| Subject: | note 86532 modified in function.strtolower by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145651@lists.php.net to get a copy of this message | ||
for someone who needs - arraytolower:
<?php
function arraytolower($array,$round = 0){
foreach($array as $key => $value){
if(is_array($value)) $array[strtolower($key)] = $this->arraytolower($value,$round+1);
else $array[strtolower($key)] = strtolower($value);
}
return $array;
}
?>
converts the whole array in a levels. keys and values.
--was--
for someone who needs - arraytolower:
function arraytolower($array,$round = 0){
foreach($array as $key => $value){
if(is_array($value)) $array[strtolower($key)] = $this->arraytolower($value,$round+1);
else $array[strtolower($key)] = strtolower($value);
}
return $array;
}
converts the whole array in a levels. keys and values.
http://php.net/manual/en/function.strtolower.php