|
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]
|