[SOLVED] PHP Array Error
by TBotNik from LinuxQuestions.org on (#5T76E)
All,
Declaring a PHP array for using "scandir(dir)"! Have used:
Code:$f_ray = [];
$f_ray = ();
$f_ray = array[];
$f_ray = array();
$f_ray = scandir($dir);And all are erroring, where these declarations never erred before and are exactly what the PHP online manual says will work.
This is on line 12 of my script and getting this error:
Code:PHP Parse error: syntax error, unexpected '$f_ray' (T_VARIABLE) in /3T/.../scrub_vc.php on line 12What am I missing here?
TBNK
Declaring a PHP array for using "scandir(dir)"! Have used:
Code:$f_ray = [];
$f_ray = ();
$f_ray = array[];
$f_ray = array();
$f_ray = scandir($dir);And all are erroring, where these declarations never erred before and are exactly what the PHP online manual says will work.
This is on line 12 of my script and getting this error:
Code:PHP Parse error: syntax error, unexpected '$f_ray' (T_VARIABLE) in /3T/.../scrub_vc.php on line 12What am I missing here?
TBNK