'Artist Name', 'title' => 'Album Title', 'country' => 'Country', 'label' => 'Label', 'format' => 'Format', 'number' => 'Number', 'cover' => $SampleCovers[rand(0,count($SampleCovers)-1)], 'link' => '/Catalogue/'.$i.'-'.rand(100,10000).'/', 'price' => rand(1,9).',500' ]; } $results = [ 'token' => rand(100,10000), 'canGoNext' => 1, 'canGoBack' => 1, 'object' => $object, 'go' => $go, 'items' => $items ]; echo json_encode($results); ?>