Re: Constant Parameters
| From: | Marco Kaiser | Date: | Fri, 02 Mar 2007 19:44:32 +0000 |
| Subject: | Re: Constant Parameters | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28205@lists.php.net to get a copy of this message | ||
Hi Jakob,
> It would be nice if in PHP 6 using constant parameters for functions
> and methods would be possible. This feature is e.g. available in Java.
>
> function doSth (const A) {
> if (defined ("A")) echo "A is a constant";
> }
>
> doSth ("foo");
>
> Cheers,
> Jay
>
This makes absolute no sense, why you want this?
-- Marco