<?php
header('Content-Type: application/json; charset=utf-8');header('Cache-Control:no-store');
$f=__DIR__.'/winners.txt';$out=[];
if(is_readable($f)){foreach(array_slice(file($f,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES)?:[],0,3) as $x){$x=trim($x);if($x!=='')$out[]=['name'=>'***'.strtolower(substr($x,0,4)).'***','prize'=>'Rp 38.000'];}}
echo json_encode($out,JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
