I want to use value of a static variable as value of another static variable
But it is not working.
For ex.
class Gateway
{
public static $config = [
'key0' => 0,
'key1' => 1
];
public static $another_config = [
self::$config['key0'],
self::$config['key1'],
];
private function __construct()
{
//something here
}
}
How can I do that or any alternative of this?