I need help with this code:

<?php
$a = json_decode(file_get_contents('http://www.ace-spades.com/serverlist.json'),true);
$n = count($a);
for($i=0; $i < $n; $i++)
{
    echo 'identifier: ' . $a[$i]['identifier'] .' count: '. $a[$i]['count'] . "\n";
}
?>

I need it so that it doesn't display this: http://www.aosserverhome.hostoi.com/servers/servertest1.php

I want to use that data and only show the number after count. The data we are pulling from is where it says this: aos://3532506841:32887 and look for where it says count, and display the number.

But this current code displays EVERYTHING that it found, I just want it to display the number after count where aos://3532506841:32887 is. I would be glad if you helped.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.