I have the following JSON file.... How do I display the value of "items-per-page" in PHP ?
{
   "status":"ok",
   "message-type":"funder-list",
   "message-version":"1.0.0",
   "message":{
      "items-per-page":20,
      "query":{
         "start-index":0,
         "search-terms":null
      },
      "total-results":31230,
      "items":[
         {
            "id":"100000001",
            "location":"United States",
I tried this and it doesn't work:
$resp = curl_exec($curl);
curl_close($curl);
$data = json_decode($resp);
echo $data->message["items-per-page"];
thank you.
 
    