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

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

On Fri, 29 Sep 2006 10:12:43 -0700, "Johnny"
<removethis.huuanito@hotmail.com> wrote:

>
><correspondent@gee-gee-mail.com> wrote in message
>news:mt8qh2d66paqanhpfs48v4plcm6f9utp7a@4ax.com...
>> 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?
>
>If you look up explode you'll see in the example that you don't the [] when
>assigning the explode, it's already an array.
>
Of COURSE!! Stupid of me. Thanks for the help.

 

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

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