Article 5T76E [SOLVED] PHP Array Error

[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?

TBNKlatest?d=yIl2AUoC8zA latest?i=MoBrY7WUiUI:7r5kRifpV-c:F7zBnMy latest?i=MoBrY7WUiUI:7r5kRifpV-c:V_sGLiP latest?d=qj6IDK7rITs latest?i=MoBrY7WUiUI:7r5kRifpV-c:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments