($i+1), "title"=>htmlspecialchars($aUsers[$i]), "info"=>htmlspecialchars($aInfo[$i]), "href"=>$aHref[$i], ); } if ($limit && $count==$limit) break; } } header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 header("Content-Type: application/json"); echo "{\"results\": [\n\t"; $arr = array(); for ($i=0;$i