title: View JSON API value on php file
body: <p>I'm trying to create a php script to display only the "credit" value of the account 491027679-102 but it does not work, I get a white screen. Can you help me solve this problem?</p>
  
  <p>This is the script I did, where I drew?</p>
  
  <pre><code>&lt;?php
  $url = 'https://www.vohippo.com/it/vohippo/user/ApiWhsGetSubList?email=mail@example.com&amp;apikey=123'; 
  $content = file_get_contents($url);
  $apiResult = json_decode($content);
  
  ($apiResult['status'] !== 'ok') &amp;&amp; 
    trigger_error('Unexpected API Result');
  
  empty(($account = array_filter($apiResult['result'], function($item) {
    return $item['account'] === '491027679-102';
  }))) &amp;&amp; trigger_error('Account not found.');
  
  echo $account[0]['credit'];
  ?&gt;
  </code></pre>