Menu
I am writing a custom debugging function and need to print some objects to the screen.
print_r does exactly what I need except it also shows private and protected members of the object shown. I need to return the string to the browser without them.
Is there an alternative function that does that?
If not then is there a way to remove them? (ive tried using regular expressions but couldn’t do it)
thank you