I can't understand why this doesn't work:
class TestOne
{
public static $TEST = array(
"test" => array( "name" => TestTwo::$TEST2[ "test" ] ) // error line
)}
class TestTwo
{
public static $TEST2 = array(
"test" => "result"
);
}
this gives me the error:
Constant expression contains invalid operations
I would like TestOne::$TEST[ "test" ][ "name" ]
to contain "result"