Re: PERL TO PHP
| From: | CC Zona | Date: | Wed, 12 Sep 2001 08:17:55 +0000 |
| Subject: | Re: PERL TO PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67013@lists.php.net to get a copy of this message | ||
In article <200109112340.AA651624696@JennyBug.com>,
programmer@JennyBug.com (Programmer) wrote:
> Can anybody help me convert this perl code to PHP
>
> This line in particular
> while( /hidden name=(.*?)>/gs )
while(preg_match_all("/hidden name=(.*?)>/s",$teststring,$matches)
Note that /g is covered by the function itself (*_all), and that there's no
default variable to match against.
--
CC