Php array problem

    $arr = [1,2,3];
    var_dump($arr);
    syntax error, unexpected "[" ;
    tp;
Mar.21,2021

php version problem 5.4 short array writing is supported

php 5.4


php version problem is above 5.4 before short array writing is supported

so consider whether it is compatible with you or $arr = array;


upgrade the php version, which is still in use. Sincerely 6

Menu