Re: [PHP-LANG] OO-problem
[email protected] (Andrei Zmievski)
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 18 Apr 2001, Zeev Suraski wrote:
> You can't have multiple definitions for the same method. However, you can
> easily implement this functionality in a number of different ways:
>
> - Using default argument values (e.g., function b($var=unset) { ... }; If
> $var is unset, behave as if there were no arguments sent).
=unset syntax should have been gone a while ago. Andi? using $var=null
works just as well.
-Andrei
* Life may be expensive, but it includes an annual free trip around the sun. *