When I use get_object_vars() php function, public variables are all fine to convert to array but the problem is private and protected variables.
Is there any way or good way to convert it?
When I use get_object_vars() php function, public variables are all fine to convert to array but the problem is private and protected variables.
Is there any way or good way to convert it?