Re: Capitalising Personal Names
| From: | Joshua Moore-Oliva | Date: | Fri, 28 Feb 2003 11:35:19 +0000 |
| Subject: | Re: Capitalising Personal Names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137545@lists.php.net to get a copy of this message | ||
What is someone spells their name Desilva?
On February 28, 2003 06:21 am, Justin French wrote:
> 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