Function for Getting Class Properties in OOP in PHP
Create a Test class with public properties
prop1 and prop2, as well as with private
properties prop3 and prop4.
Call the get_class_vars function from outside
the Test class. Output the array of available
properties.
Call the get_class_vars function inside
the Test class (for example, in the constructor).
Output the array of available properties.