0

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?

2
  • Please provide code to show what you are trying to achieve. Commented Feb 12, 2019 at 3:04
  • what is your expected result? Commented Feb 12, 2019 at 3:05

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.