note 69104 added to language.oop5.visibility

From: Date: Wed, 23 Aug 2006 09:22:49 +0000
Subject: note 69104 added to language.oop5.visibility
Groups: php.notes 
Request: Send a blank email to php-notes+get-116219@lists.php.net to get a copy of this message
A class A static public function can access to class A private function : <?php class A { private function foo() { print("bar"); } static public function bar($a) { $a->foo(); } } $a = new A(); A::bar($a); ?> It's working. ---- Server IP: 66.163.161.117 Probable Submitter: 193.252.0.114 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.php Edit -- https://master.php.net/note/edit/69104 Del: integrated -- https://master.php.net/note/delete/69104/integrated Del: useless -- https://master.php.net/note/delete/69104/useless Del: bad code -- https://master.php.net/note/delete/69104/bad+code Del: spam -- https://master.php.net/note/delete/69104/spam Del: non-english -- https://master.php.net/note/delete/69104/non-english Del: in docs -- https://master.php.net/note/delete/69104/in+docs Del: other reasons-- https://master.php.net/note/delete/69104 Reject -- https://master.php.net/note/reject/69104 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116219) next »