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
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
2 matches
Mail list logo