You are here: How do you split a string using split()? « PHP Programming Language « IT news, forums, messages
How do you split a string using split()?

Posted by ImOk on 05/18/06 01:47

I have this PHP statement which works fine and breaks down a string of
lines delimited with a \r into an array.

$arrList=split("\r", $strList);

But what I really want is to be able to tell it to split out only the
strings that start with the letter "b".

E.g. I thought this would work "b\W\r"

I tried every regular expression but cant figure it out. I could use
some other function combinations to achive this but I though if there
is a way to do it with just spli()

Any ideas?

 

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

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