title: Specifying fields in API using PHP
body: <p>I have the following code which works;</p>
  
  <pre><code>&lt;?php
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,"https://api.nutritionix.com/v1_1/search");
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS,
          "appId=id&amp;appKey=key&amp;query=milk");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $response = curl_exec ($ch);
  
  curl_close ($ch);
  
  print_r($response);
  ?&gt;
  </code></pre>
  
  <p>Question is, how do i specify fields to be outputted in the results?
  I have tried, <code>"appId=id&amp;appKey=key&amp;query=milk&amp;fields=item_name, nf_calories"</code> but to no avail..</p>
  
  <p>Any help appreciated. Thanks.</p>