Re: Capitalising Personal Names
| From: | Justin French | Date: | Fri, 28 Feb 2003 11:21:46 +0000 |
| Subject: | Re: Capitalising Personal Names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137541@lists.php.net to get a copy of this message | ||
What about DeSilva And McSomething?
Justin
on 28/02/03 10:11 PM, Danny Shepherd (danny@kyboshed.com) wrote:
> Hi,
>
> Well it's hardly rocket science - a flick through the manual and I came up
> with :
>
> $name=ucwords(strtolower($name));
>
> HTH
>
> Danny.
>
> ----- Original Message -----
> From: "Geoff Caplan" <geoff@advantae.com>
> To: <php-general@lists.php.net>
> Sent: Friday, February 28, 2003 10:31 AM
> Subject: [PHP] Capitalising Personal Names
>
>
>> Hi folks,
>>
>> I need to clean up the capitalisation of user-entered personal names.
>>
>> Once you start thinking about it, you realise it is a non-trivial
>> issue, but previous discussions on the list presented only very
>> partial solutions.
>>
>> In Perl, there are Cpan modules such as namecase and nameparse which
>> handle this quite well. Does anyone have anything similar in PHP?
>>
>> Thanks
>> --
>>
>> Geoff Caplan
>> Advantae Ltd
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>