Hi folks,
I have now hacked out a little name module on the lines discussed.
The aim is to capitalise names which user has entered in all
upper or all lower case. It would be useful in situations such as an
e-commerce checkout where ease of use is more important than accuracy
and you don't want t
Maybe a script that tests the entry, and asks the user to reconfirm
nonstandard spelling and capitalization. Something like...
if ($name != ucwords($name) {
//script that suggests ucwords($name) as a possible correction
//but allows the user to confirm nonstandard capitalization scheme
//by re-en
> DS> Well it's hardly rocket science -
>
> I'm afraid it's a bit more complicated than that. There are hypenated
> names, names with lower-case words like de and von, Irish style names
> (O'Connell), Scots style names (MacDonald, McCalman) etc etc. And
> there are exceptions in most of these case
> What is someone spells their name Desilva?
>
> On February 28, 2003 06:21 am, Justin French wrote:
> > What about DeSilva And McSomething?
I found another thread on this subject here:
http://www.phpbuilder.com/mail/php-general/2002102/2138.php, but i did not
read it.
Looking at all the exampl
well, as a last resort if you can find the perl module that does that conver
the code to php...
it's probably just a bunch of regular expressions, and php has a perl compat
regular expressions interface..
Josh.
On February 28, 2003 07:01 am, Geoff Caplan wrote:
> Joshua,
>
> JMO> Make a perl s
ebruary 28, 2003 11:35 AM
Subject: Re: [PHP] Capitalising Personal Names
> 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 P
Make a perl script that does what you want and use exec to pipe to it then :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 ([EMAIL PROTECTED]) wrote:
> > Hi,
> >
> > Well it's hardly rocket science - a flick through the manual and I cam
Hi Danny,
> > I need to clean up the capitalisation of user-entered personal names.
>
> Well it's hardly rocket science - a flick through the manual and I
> came up with :
> $name=ucwords(strtolower($name));
While that would work in many cases, how do you catch exceptions such as the
following?
What about DeSilva And McSomething?
Justin
on 28/02/03 10:11 PM, Danny Shepherd ([EMAIL PROTECTED]) 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 -
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 10:31 AM
Subject: [PHP] Capitalising
11 matches
Mail list logo