How to pass an object from php to javascript?
You can convert the PHP object to an array, and then use JSON function to encode it. After that, decode it from JavaScript
You can convert the PHP object to an array, and then use JSON function to encode it. After that, decode it from JavaScript