note 69778 added to language.oop5.visibility

From: Date: Wed, 20 Sep 2006 15:50:50 +0000
Subject: note 69778 added to language.oop5.visibility
Groups: php.notes 
Request: Send a blank email to php-notes+get-117354@lists.php.net to get a copy of this message
<? 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 */ ?> ---- Server IP: 83.138.144.80 Probable Submitter: 194.143.164.204 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.php Edit -- https://master.php.net/note/edit/69778 Del: integrated -- https://master.php.net/note/delete/69778/integrated Del: useless -- https://master.php.net/note/delete/69778/useless Del: bad code -- https://master.php.net/note/delete/69778/bad+code Del: spam -- https://master.php.net/note/delete/69778/spam Del: non-english -- https://master.php.net/note/delete/69778/non-english Del: in docs -- https://master.php.net/note/delete/69778/in+docs Del: other reasons-- https://master.php.net/note/delete/69778 Reject -- https://master.php.net/note/reject/69778 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117354) next »