note 108852 added to language.oop5.visibility

From: Date: Wed, 30 May 2012 13:48:54 +0000
Subject: note 108852 added to language.oop5.visibility
Groups: php.notes 
Request: Send a blank email to php-notes+get-188294@lists.php.net to get a copy of this message
class test { public $public = 'Public var'; protected $protected = 'protected var'; private $private = 'Private var'; public static $static_public = 'Public static var'; protected static $static_protected = 'protected static var'; private static $static_private = 'Private static var'; } $class = new test; print_r($class); The code prints test Object ( [public] => Public var [protected:protected] => protected var [private:test:private] => Private var ) Functions like print_r(), var_dump() and var_export() prints public, protected and private variables, but not the static variables. ---- Server IP: 69.147.83.197 Probable Submitter: 41.222.204.109 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.php Edit -- https://master.php.net/note/edit/108852 Del: integrated -- https://master.php.net/note/delete/108852/integrated Del: useless -- https://master.php.net/note/delete/108852/useless Del: bad code -- https://master.php.net/note/delete/108852/bad+code Del: spam -- https://master.php.net/note/delete/108852/spam Del: non-english -- https://master.php.net/note/delete/108852/non-english Del: in docs -- https://master.php.net/note/delete/108852/in+docs Del: other reasons-- https://master.php.net/note/delete/108852 Reject -- https://master.php.net/note/reject/108852 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188294) next »