note 69778 deleted from language.oop5.visibility by bjori

From: Date: Wed, 20 Sep 2006 15:53:47 +0000
Subject: note 69778 deleted from language.oop5.visibility by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117355@lists.php.net to get a copy of this message
Note Submitter: vallka at vallka dot com Reason: in docs ---- <? error_reporting(0xFFFF); # hopefully all possible! class A { private $a; protected $b; public $c; var $d; } $v = new A; #$v->a = 1; # ok, error #$v->b = 2; # ok, error $v->c = 3; $v->d = 4; $v->e = 5; # it works!!! $v->f = 6; # it works!!! #print $v->a . '<br>'; # ok, error #print $v->b . '<br>'; # ok, error print $v->c . '<br>'; print $v->d . '<br>'; print $v->e . '<br>'; print $v->f . '<br>'; print $v->g . '<br>'; # gives notice (only noice!) /* Output: 3 4 5 6 Notice: Undefined property: A::$g in /homepages/28/d116680254/htdocs/vallka/test.php5 on line 26 */ ?>

« previous php.notes (#117355) next »