Posts Tagged ‘tricks’

Getting all default properties of the class from any scope

Problem: get_class_vars() in PHP version 5.0.3 and above returns only the properties that can be accessed from the current scope. I want to demonstrate the way to get properties (protected or private) of the class from any scope.
(more…)

Read the rest of this entry »