You are here: Re: single array to multidimensional « PHP Programming Language « IT news, forums, messages
Re: single array to multidimensional

Posted by Chung Leong on 06/22/06 20:21

Andy Hassall wrote:
>
> There are undoubtably faster, more concise and cleverer ways of doing this.
>

Which would involve, of course, regular expression :-)

preg_match_all('/(?P<name>[^,]+),(?P<url>[^,]+)/', $list, $m,
PREG_SET_ORDER);

Enjoy!

 

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

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