Re: Using Function as argument to constructor
| From: | Rasmus Lerdorf | Date: | Tue, 25 Jul 2000 21:09:28 +0000 |
| Subject: | Re: Using Function as argument to constructor | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8139@lists.php.net to get a copy of this message | ||
> $function TestURL($URL){
> return preg_match("/^http\:\/\/[\w\-_\.]+\/[\w\%_\-\.\/]*$/i",$URL);
>
> }
Get rid of the $ in front of function there.
-Rasmus