note 24327 deleted from language.oop by vincent

From: Date: Thu, 11 Sep 2003 20:01:11 +0000
Subject: note 24327 deleted from language.oop by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56209@lists.php.net to get a copy of this message
Note Submitter: ---- [Editor's note: There are no real "private" variables/methods in PHP 3 or PHP 4, some functions treat variables/methods whose names start with and underscore as if they were private, but they are still accessible. This is schedule to change when the Zend 2 engine gets released, don't hold your breath just yet ;-)] Don't know if it's undocumented, or if I just can't find it, but... yes, you can make private functions/variables! Just prepend the variable name with an underscore, ie. var $_myPrivateVar or function _myPrivateFunction

« previous php.notes (#56209) next »