Posted by Zoe Brown on 10/21/05 16:24
"Siv Hansen" <sivh@broadpark.no> wrote in message
news:4358e8c1$1@news.broadpark.no...
> Zoe Brown wrote:
>> Hello
>>
>> I have a string that looks like this "Option 1 - 0086~Option 1 -
>> 0086~Option 1 - 0086~Option 1 - 0086~"
>>
>> I want to split the sting around the "~" or create an array fo strings so
>> that I can spit out each of the indicvidual values.
>>
>> I am new to PHP and cant seem to find the answer.
>>
>> Thanks
>>
>> Zoe
> you can use $array= explode('~', $the_string_you_want_to_separate);
> where parameters to explode is (Stringseparator,
> string_to_separate_into_an_array)
what is the difference between the explode or the split method ?
[Back to original message]
|