RE: sentence case

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

 



Leif Gregory <mailto:Leifg@xxxxxxxxxxxxxxx>
    on Wednesday, February 23, 2005 10:31 AM said:

> I'm thinking something like:
> 
> 1. strtolower() the string
> 2. explode() on the period
> 3. Loop through the resulting array
>    a. trim() whitespace on each element
>    b. ucfirst() on each element of the array
>    c. Concatenate the string back together, putting a period and a
>       space at the end of each element.

And on top of that he'll need to convert all 'i' to 'I' because of step
1.



Chris.

-- 
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