My code:
class User
{
protected static $config = array(
'expiration' => 0,
);
protected static $Db;
protected static $user = array();
static::$user['data'] = array();
static::$user['meta'] = array();
static::$user['controls'] = array();
Here I will get this error:
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting variable (T_VARIABLE)
by complaining this:
`static::$user['data'] = array()`
How can I declare static::$user['data'] here?
self::$user['key'] = array()