Initialize a class property <p>Is there a way to initialize a PHP class property from another class property? I have a series of properties I'd like to depend upon each other for easy modification of the root value:</p> <p></p> <pre><code>class Anon { private static $a = 5; private static $b = '+' . (2 * self::$a); } </code></pre> <p>However, this causes a syntax error. I've had trouble searching for this, but I haven't seen anybody trying to do this!</p>