I'm trying to assign an array to a variable in a class but I end up with a nasty error. Here is my code, and later my error.
class i42
{
$this->sections = array("news", "layout", "users", "photos", "guestbook", "discussion", "config");
//the rest is unimportant
}
and the error:
Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}''
Any ideas?