I have a php class like the following and got error saying invalid operation. I tried Sell::$a, self::$a and $this->a, Foo::$a, none of them worked. So I'm wondering if it's possible with PHP. I'm using php7.1. With Perl, there'd be no problems.
<?php
class Foo {
public static $a = 1;
public static $b = $a; /* want to assign $a to $b here */
...
}