Reply to Re: split string or create an array

Your name:

Reply:


Posted by Siv Hansen on 10/21/05 16:10

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)

More info if needed at http://no.php.net/manual/en/function.explode.php

[Back to original 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

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