title: Get the list of DOI value from JSON URL
body: <p>I have a short JSON file from URL</p>
  
  <p><code>https://api.crossref.org/works?query.title=Tuberculosis+drug&amp;filter=type:journal-article,from-print-pub-date:2010,until-print-pub-date:2010&amp;select=DOI&amp;rows=3</code></p>
  
  <p>I used this code to get <code>total-results</code> and the list of <code>DOI</code> value</p>
  
  <pre><code>$crossref_api_url = 'https://api.crossref.org/works?query.title=Tuberculosis+drug&amp;filter=type:journal-article,from-print-pub-date:2010,until-print-pub-date:2010&amp;select=DOI&amp;rows=2';
  
  $JSON = file_get_contents($crossref_api_url);
  $Array = json_decode($JSON, true);          
  
  $items_list = $message-&gt;items; 
  $totalItems = $message-&gt;total-results;  
  echo $totalItems;
  
  for($i = 0; $i &lt; count($items_list ); $i++) {
      $doi = $items_list[$i]-&gt;items-&gt;DOI;
      echo $doi;  
  }
  </code></pre>
  
  <p>The result appears <code>0</code>. There are no <code>totalItems</code> value, <code>DOI</code> list.</p>
  
  <p>Please help me the find the mistake of my code. Thank you</p>