Re: OO-problem

From: Date: Fri, 20 Apr 2001 19:22:51 +0000
Subject: Re: OO-problem
References: 1 2 3  Groups: php.lang 
Request: Send a blank email to php-lang+get-149@lists.php.net to get a copy of this message
I can't see the unset syntax in the CVS anymore. I think my memory serves me right and I nuked it a while ago :) Andi At 09:33 AM 4/20/2001 -0500, Andrei Zmievski wrote:
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. * -- PHP Language Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-lang-unsubscribe@lists.php.net For additional commands, e-mail: php-lang-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.lang (#149) next »