RE: [PHP] one-liner with strtolower and array_walk()?

2006-03-29 Thread Shaunak Kashyap
on in error, please notify the sender by reply e-mail and destroy all copies of this transmission. > -Original Message- > From: Marten Lehmann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 29, 2006 9:36 AM > To: php-general@lists.php.net > Subject: [PHP] one-liner with strtol

[PHP] one-liner with strtolower and array_walk()?

2006-03-29 Thread Marten Lehmann
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