Not a problem at all cause reviewer_best_rated_items(5,1); returns the data which are sent to the user with that <?= syntax. So when you call your function like this:
$result = reviewer_best_rated_items(5,1);
$result should now contain those data. Now store em to a file:
$fp = fopen("static.txt", "w");
fwrite($fp, $result);
fclose($fp);
Now static.txt contains the list. To output in on your frontpage, use:
echo implode("", file("static.txt"));
So u just have to call the file that creates static.txt when u wanna have an updated list...
Hope that helps, if u encounter further questions feel free to post again