Re: note 8651 added to preg_match_all
| From: | sean | Date: | Sat, 23 Sep 2000 06:53:26 +0000 |
| Subject: | Re: note 8651 added to preg_match_all | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-5359@lists.php.net to get a copy of this message | ||
From what I can tell from the manual entry, it returns an array of all
matches (regardless of parentheses), if order is set to
PREG_PATTERN_ORDER. After that another array is returned for each set of
parenthesis. I don't see anything about it returning an array of all the
matches from all the sets of parenthesis.
Am I missing something?
Sean
On Fri, 22 Sep 2000, J. M. Castagnetto wrote:
> It does, it returns a bidimensional array. Try it and
> use print_r() (for example) to print the returned
> array. Read the manual entry again.
>
> Your note has been removed
>
> --- mccleary@efn.org wrote:
> > it would be nice if this function had an option to
> > return an array of all the matches that were in all
> > of the parentheses.
> >
> >
> >
> http://www.php.net/manual/function.preg-match-all.php
> >
> >
> >
> > --
> > PHP Notes Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > php-notes-unsubscribe@lists.php.net
> > For additional commands, e-mail:
> > php-notes-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
>
> =====
> --- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>