note 103212 modified in function.strtolower by danbrown

From: Date: Fri, 01 Apr 2011 13:04:46 +0000
Subject: note 103212 modified in function.strtolower by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178406@lists.php.net to get a copy of this message
To convert an entire array to lower, I prefer this method; <?php function arraytolower(array $array, $round = 0){ return unserialize(strtolower(serialize($array))); } ?> 3 lines of code seem a lot less overhead than 10-40. If there's any intrinsic problem with this method, please post it. --was-- To convert an entire array to lower, I prefer this method; function arraytolower(array $array, $round = 0){ return unserialize(strtolower(serialize($array))); } 3 lines of code seem a lot less overhead than 10-40. If there's any intrinsic problem with this method, please post it. http://php.net/manual/en/function.strtolower.php

« previous php.notes (#178406) next »