You are here: How to handle "O'Hara" , etc? « All PHP « IT news, forums, messages
How to handle "O'Hara" , etc?

Posted by correspondent on 10/11/07 11:59

I've been asked to manipulate the input from a name-and-address form
so that the inputting operators can use lower-case all the way through
the form. Well, that's no problem with ucfirst() and stuff, but how
do I handle

O'Hara ?

When I go -
$sections[]=explode("'", $surname);
$section0=$sections[0];
$section1=ucfirst($sections[1]);
$surname=$section0."'".$section1;

I wind up with O'hara

I suppose the answer will hit me two seconds after pressing this Enter
button, but in case it doesn't, can someone help, please?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация