Search For a User's Farm Points

<?php
$query = "sat";
$json = file_get_contents("http://opensimworld.com/farmstats/farm.json?cmd=searchUser&q=" . $query);

// Convert JSON string to Array

$someArray = json_decode($json, true);
echo "You searched for: " . $query . " and it returned: <br />";
$arrlength = count($someArray);

for ($x = 0; $x < $arrlength; $x++)
	{
	echo $someArray[$x]["username"]; // Access Username
	echo " | ";
	echo $someArray[$x]["display_name"]; // Access Display Name data
	echo " | ";
	echo $someArray[$x]["farmPoints"]; // Access Farm Points data
	echo " | ";
	echo $someArray[$x]["farm_lastproduct"]; // Access Farm Points data
	echo " | ";
	echo $someArray[$x]["farm_updated"]; // Access Farm Points data
	echo "<br />";
	}

?>