I have a static class Foo (this is not a real class, so static fields are just an example)
class Foo{ public static $name = "foo"; public static $age = "18"; public static $city = "Boston"; }
In my code, I want to build an array of all public static properties and their current values.
Is there a quick / easy way anyone can suggest to do this without instantiating Foo?
source share