How to Convert stdClass Object into Array for Data Transfer

How to Convert stdClass Object into Array for Data Transfer

When ever you stuck with data transfer error that is stdClass Object with Object,String related Error. First of all Encode your Object Response with json_encode like

json_encode($response)
and after that Decode the Result with
json_decode(json_encode($response), true);
and get your response and use it.

Comments

Popular posts from this blog

Prestashop Pass Controller Variables To TPL

Prestashop Create Admin Controller inside Admin Folder

Prestashop PDF Download Error