note 46903 added to function.get-object-vars

From: Date: Wed, 27 Oct 2004 15:02:58 +0000
Subject: note 46903 added to function.get-object-vars
Groups: php.notes 
Request: Send a blank email to php-notes+get-79186@lists.php.net to get a copy of this message
actually, it's not entirely true that php5 will only return public members....php5 will return any variable IT HAS ACCESS TO In other words, if you do a get_class_variables($this) inside a class, you'll get everything - public, private, the whole shebang...really annoying since you can't check to see what's private/public without using reflection ---- Manual Page -- http://www.php.net/manual/en/function.get-object-vars.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46903 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46903&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46903&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79186) next »