Tuesday, November 12, 2019

arrays - PHP: suddenly can't parse some word

$team = trim(split("are", $string)[0]); // Line 215


this code has syntax error but i can't solve this :(





Parse error: syntax error, unexpected '[' in /home/zz.php on line 215




and When I define varible like this



$array = [
"a",
"b",
];




Parse error: syntax error, unexpected '['




too

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...