I have this code which returns an error:
$response = curl_exec($client);
$result = json_decode($response);
$output = '';
if(count($result) > 0)
{
foreach($result as $row)
{
$output .= '
<tr>
<td>'.$row->name.'</td>
<td>'.$row->url.'</td>
Error
Parameter must be an array or an object that implements Countable?