How does php extract json data,

Source: Internet
Author: User
How php extracts json data is in a hurry !!! Why # How to extract json data from plac php !!!
I am currently studying Baidu map APIs and have encountered some problems.
For example, if I have extracted such information
How can I extract data from the stepInstruction field?
------ Solution --------------------
Json_decode
------ Solution --------------------
Set the name of the array you printed to $ ar.
Array_walk_recursive ($ ar, function ($ v, $ k) {if ($ k = 'stepinstruction ') echo $ v ;});

D:
Ride Road 12(Or 16, 8, 2, 360 walk, arrive at the terminal Road 19(28 or 270 walk to the terminal 17th Road, After 3 stations, 820 walk to the home station of the People's Republic of China, to the terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.