Bug #9200 Updated: strtolower handle arrays in addition to strings

From: Date: Sun, 28 Apr 2002 23:19:37 +0000
Subject: Bug #9200 Updated: strtolower handle arrays in addition to strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6373@lists.php.net to get a copy of this message
ID: 9200 Updated by: jimw@php.net Reported By: ben@efros.com -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: linux PHP Version: 4.0.4pl1 New Comment: you can use array_map() to apply a function to an array like this. Previous Comments: ------------------------------------------------------------------------ [2001-02-09 19:29:38] ben@efros.com It would be nice to have strtolower() accept arrays as arguments (or just make a function such as ArrayToLower()). For example: $OUT["SomECapital"]="Whatever This Doesn't Matter"; echo $OUT["SomECapital"]; /* Works as expected */ $newOUT=strtolower($OUT); /* Currently the above line puts "Array" into $newOUT (like expected) , instead make this convert indexes with uppercase letters into lower case, so the line below would work and output the string "Whatever This Doesn't Matter" */ echo $newOUT["somecapital"]; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=9200&edit=1

« previous php.bugs (#6373) next »