RE: [PHP-DB] preg_math vs preg_match_all

2004-11-24 Thread Russell Johnson
up on the preg_* functions... -Mensaje original- De: Gerard Samuel [mailto:[EMAIL PROTECTED] Enviado el: Tuesday, November 23, 2004 2:37 PM Para: Yemi Obembe CC: [EMAIL PROTECTED] Asunto: Re: [PHP-DB] preg_math vs preg_match_all Yemi Obembe wrote: Just want to know the difference

Re: [PHP-DB] preg_math vs preg_match_all

2004-11-23 Thread Gerard Samuel
Yemi Obembe wrote: Just want to know the difference between preg_match and preg_match_all. preg_match stops after the first match. preg_match_all gets *all* the matches. E.g. If you have a string - $str = foofoo; preg_match('/foo/', $str, $match); - $match will have an array with one foo.