Re:

From: Date: Wed, 08 May 2013 19:23:20 +0000
Subject: Re:
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-321043@lists.php.net to get a copy of this message
On Wed, May 8, 2013 at 3:13 PM, Steven Staples <sstaples@mnsi.net> wrote: > > Why does this feel like a new function/feature for PHP now? > > Function acronymize($acronym) > { > // do stuff here now... :S > } <?php function acronymize($text) { preg_match_all('/[A-Z]/s',ucwords(strtolower($text)),$matches); return implode('',$matches[0]); } ?> -- </Daniel P. Brown> Network Infrastructure Manager http://www.php.net/

« previous php.general (#321043) next »