You are here: explode() behaviour? « PHP Language « IT news, forums, messages
explode() behaviour?

Posted by Frank Bemelman on 08/29/05 15:30

Dear group,

I'm trying to explode a tab delimited string into
an array of strings, using explode.

It seems that when I explode "\t\t\tone\ttwo\tthree\tfour"
it gives me 4 strings: "one", "two", "three", "four".

I expected to get 6 strings: "","","one", "two", "three", "four".

Is this normal behaviour, or is there another method
to get what I want?

--
Thanks, Frank.
(remove 'q' and '.invalid' when replying by email)

 

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

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