I am trying to access a specific value in the array that is formed after my query.
$query = $views->find('all');
$results = $query->all();
$data = $results->toArray();
$results = $query->toArray();
echo $results[0];
the echo shows {'id':1, 'date':2016-07-27,'amount':30}
I just want to get the 30 from amount. How would I go about doing that?