I started receiving a strange PHP error, the script was working fine on the server, but when I set up locally I get a PHP parse error but everything is looking good. The error is on this line:
$MaxBet = array_values($maxbet)[$Cnt];
From this snippet
$Cnt = 0;
foreach ($pcent as $val) {
$MaxBet = array_values($maxbet)[$Cnt];
$Payout = array_values($payout)[$Cnt];
echo "<a href='#' id={$Cnt}>Less than {$val} Max bet:{$MaxBet} Payout:x{$Payout}</a><br>";
$Cnt++;
}
Both web server and local setup using nginx and php5-fpm.