Danny,

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 cases too. Plus there other
conventions in other cultures.

You will never get it right all the time. But the Perl modules I
mentioned make a pretty good try. Of course if someone has capitalised
their name themselves, you would leave it alone. The algorithm would
go:

if( name is mixed case )
{
    leave it alone: user knows how they want it displayed
}
else
{
    have a go at capitalizing it - it is better than nothing.
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to