Re: how to ...

From: Date: Mon, 10 Jul 2000 17:39:12 +0000
Subject: Re: how to ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5768@lists.php.net to get a copy of this message
try: if (!$this) { do bla bla bla; } else { // If it IS set do bla bla bla; } -- - Nick Catalano < nick4753@nozone.net > -------------------------------------------------- "Sometimes the greatest ideas come from unexpected places" "Teodor Cimpoesu" <teo@digiro.net> wrote in message news:20000710175729.A1740@digiro.net... : ... check within a method if the call was made via a class resolution, or : an object method invocation? : Is `$this != null' the right way? : : Problem is, using something like isset($this) or $this != null' gives an : ugly warning. : : -- teodor : : -- : PHP General Mailing List (http://www.php.net/) : To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net : For additional commands, e-mail: php-general-help@lists.php.net : To contact the list administrators, e-mail: php-list-admin@lists.php.net :

« previous php.general (#5768) next »