You are here: Re: preg split « PHP Programming Language « IT news, forums, messages
Re: preg split

Posted by pritaeas on 07/26/06 11:09

$result = preg_split ('/ |,|\n/', $subject);

"Chris Thompson" <c.thompson@zen.co.uk> wrote in message
news:44c743dc$0$15048$db0fefd9@news.zen.co.uk...
> Hi All,
>
> Trying to split a string where there are occurances of a space, a comma, a
> newline (char 10), or a return (char 13) using the preg_split function,
> but not sure how to write the regular expression for this...



--
Posted via a free Usenet account from http://www.teranews.com

 

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

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