Re: Parsing Strings
| From: | Philip Thompson | Date: | Mon, 15 Oct 2007 16:59:29 +0000 |
| Subject: | Re: Parsing Strings | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263214@lists.php.net to get a copy of this message | ||
On 10/15/07, Richard Heyes <richardh@phpguru.org> wrote:
>
> Philip Thompson wrote:
> > ...
>
> <?php
> $str = 'thisIsAStringIHave';
>
> echo ucfirst(preg_replace('/([A-Z])/', ' $1', $str));
> ?>
>
> HTH
Ha! I knew there was a much easier way. My brain is still not working this
Monday morning........ need... more... caf... feine........
Thanks!!
~Philip