Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
<?php
2
$query = $_REQUEST["query"];
3
 
4
$max = rand(5, 10);
5
$results = array();
6
 
7
for($i = 0; $i <= $max; $i++) {
8
        $results[] = array(
9
                "value" => $query . ' - ' . rand(10, 100),
10
                "desc" => "some description goes here...",
11
                "img" => "http://lorempixel.com/50/50/?" . (rand(1, 10000) . rand(1, 10000)),
12
                "tokens" => array($query, $query . rand(1, 10))
13
        );
14
}
15
 
16
echo json_encode($results);
17
?>