one-liner with strtolower and array_walk()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

is it possible to write a one-liner like this:

$uppercase = array("ONE", "TWO");
array_walk($uppercase, "strtolower");
print_r($uppercase);

I don't want to do a foreach-loop on each element, putting the lowercase in a new array and returning this. Is there a nicer way?

Regards
Marten

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux