Please note that this is not normal syntax error its working offline and not online..
I have below code in PHP which is working perfectly online
for($i=0; $i<$colCount;$i++){
    $keys = array_keys($cols)[$i];
    $values = array_values($cols[$i]);
    $stmt->bindValue(":".$keys, $values);
}
But when i uploaded the same thing to online i got below error..??
PHP Parse error:  syntax error, unexpected '[', expecting ',' or ';' in XXXXXXXXX on line 183
What can be the issue..??
 
    