Hey I have a class like this
class derp{
public $$ini;
public static function regIni($ini){
derp::$$ini = 'test';
}
}
And then in another file I have
core::regIni('register');
And then somewhere else I use
core::$register;
This produces an error
public $$ini
is not valid code but if I leave it without I can not set
core::$$ini
How do I fix this?
Please note that $$ini is a variable variable meaning the value of $ini is actuely the variable name so $ini = 'registry' then $$ini actualy means $registry.