Learn how to convert php stdClass to array
If you need to convert php stdClass to array, there is a lazy one-liner method. In one liner we are using the JSON methods if you’re willing to lose a tiny bit of performance. Here you need to encode stdClass with json_encode and after that decode it using json_decode. Converting an array/stdClass -> stdClass $stdClass […]
Continue Reading →