Burada işe yaramaz kod:
class MyClass
{
const myconst = 'somevalue';
private $myvar = array( 0 => 'do something with '.self::myconst );
}
Seems that class constants are not available at "compile time", but only at runtime. Does anyone know any workaround ? (define won't work)
Teşekkürler