Re: unset isn't a function anymore...
| From: | Derick Rethans | Date: | Thu, 05 Dec 2002 06:33:59 +0000 |
| Subject: | Re: unset isn't a function anymore... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92090@lists.php.net to get a copy of this message | ||
On Wed, 4 Dec 2002, Eric Coleman wrote:
> Well since it isn't a function, shouldn't it be able to be used without
> braces?
>
> Require/Include/Echo/Print all work that way?
wel, no, unset() is just fine, and changing it now would make less
sense. THere are more functions like this btw, isset() for example, and
empty().
>
> Also, would it be easy to add something like ASP's sub to PHP?
>
> Basically like a function, but no return value. where the user could choose
> to call it without parenthases?
Not likely, I don't see what enhancements it brings.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------