Sections
json
1 thread tagged with this topic
Threads tagged json
- ✓
How do I convert a stdClass object to an array in PHP?
Cast it with (array) $obj to get an array of its properties. That only converts the top level, so nested objects stay objects. If the object came from...
0replies