Reply to Re: explode on whitespace

Your name:

Reply:


Posted by Oli Filth on 07/01/05 16:10

liam193 said the following on 01/07/2005 14:00:
> I'm assuming this is an easy question and I'm just missing something.
> I need to be able to explode a string on whitespace. The issue here is
> that I want to explode it such that all contiguous whitespace is one
> explode point. For example the following strings would all produce
> the same array of "words":
>
> This is a test.
> This is a test.
> This\tis a test.
> This\t \tis a test.
>
> Thoughts?
>


preg_split('/\d+/', $str);

--
Oli

[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

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