is there a way to create an array containing all the public vars from a class without having to add them manually in PHP5?
I am looking for the quickest way to sequentially set a group of vars in a class
Have a look at:
get_class_vars
With this you get the public vars in an array.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With