Problem with arrays
Posted: Mon Feb 03, 2003 2:17 pm
Hello,
I have write a script with this line:
array_push($array, "$saved[0]"=>"$username");
but when I open the script in a browser an error comes:
Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/www/web174/html/Toplist.php on line 14
How can I remove this error?
This line is like $array = array("1"=>"test", "2"=>"admin");...
I hope you can help me...
Sorry for my english... I'm 14 and from Germany =/
I have write a script with this line:
array_push($array, "$saved[0]"=>"$username");
but when I open the script in a browser an error comes:
Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/www/web174/html/Toplist.php on line 14
How can I remove this error?
This line is like $array = array("1"=>"test", "2"=>"admin");...
I hope you can help me...
Sorry for my english... I'm 14 and from Germany =/