0

Sending the Data from Angularjs in the form of JSON as below

Object {data: "stdClass Object↵(↵ [0] => B↵ [vin] => vin123…[value] => Gambia↵ [country_name] => Gambia↵)↵", status: 200, headers: function, config: Object}

Then in php how to access only the data in that Object Json i.e data->0, data->vin etc...........

1
  • use the response of this question Commented Jun 25, 2014 at 15:41

1 Answer 1

1

Simply use json_decode() as it is a standard PHP function that transforms your serialized JSON object into a php array, that you then can use in php.

If you want an object representation, you may hydrate that object with data from that array.

Sign up to request clarification or add additional context in comments.

1 Comment

i want the data from the Object, how to access it. Even we have status, header, config etc.. different properties is there. How to access data Only

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.