$i+1,'time'=>date('H:i:s',time()-$i*rand(10,60)), 'email'=>'user'.rand(100,9999).'@'.strtolower($isps[$i%8]).'.com', 'isp'=>$isps[$i%8],'country'=>$countries[$i%8], 'method'=>$methods[$i%5],'status'=>$statuses[$i%8], 'open'=>rand(0,1)==1,'click'=>rand(0,3)==0 ]; } echo json_encode(['status'=>'success','data'=>[ 'live_events'=>$events,'total_24h'=>4523, 'inbox_rate'=>91.3,'countries'=>6,'isps'=>8 ]]);break; default: echo json_encode(['status'=>'success','data'=>['active'=>true]]); }