note 43774 deleted from language.variables.scope by danbrown

From: Date: Mon, 18 May 2009 01:40:01 +0000
Subject: note 43774 deleted from language.variables.scope by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155573@lists.php.net to get a copy of this message
Note Submitter: shyam dot g at gmail dot com ---- in response to Michael's comments, it is imperative to observe that static variables in methods of an object are not class level variables. and since both a and b from the previous example are 2 different objects, there is no question of the static variable being shared between the objects. The variable is static with respect to the function and not the class. sam

« previous php.notes (#155573) next »