get json using php

前端 未结 3 1683
遇见更好的自我
遇见更好的自我 2020-12-06 10:09

I need to get the json data from, http://vortaro.us.to/ajax/epo/eng/ + \'word\'+ \"/?callback=?\" working example (not enough reputation)

I know how to do it in jav

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 10:41

    file_get_contents() can be used on a URL. A simple and convenient way to handle http page download.

    That done, you can use json_decode() to parse the data into something useful.

提交回复
热议问题