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

Posted by Andy Hassall on 06/22/06 20:53

On 22 Jun 2006 13:21:50 -0700, "Chung Leong" <chernyshevsky@hotmail.com> wrote:

>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);

Ah ha, was trying to work out how to get it with PCRE, knew it was possible
:-)

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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