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

Posted by frizzle on 06/23/06 13:08

frizzle wrote:
> Andy Hassall wrote:
> > 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
>
> I'm sorry, but i don't completely understand the logics in the
> Disny-function, and i don't completely understand the logics in the
> pattern of the preg_match_all part.
>
> Could someone please explain a little bit more ?
>
> Frizzle.

Especially the "?P" - part in the pattern i cannot figure out ...

Frizzle.

 

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

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