RE: [PHP-DEV] arithmetic operators in member variable assignments From: Sam Leibowitz (sleibowitz <email protected>)
Date: 08/12/00

> >Sure. Var initializers can be only constants. 12*12 isn't constant, it's
> >an experssion.
>
> Elaborating on this answer, if you want to have non-constant initializers
> then move the initialization code to the classes constructor.

Many thanks. This is what I get for not reading the "incompatibilities with
3.0" notes. :)

        Sam Leibowitz (sleibowitz <email protected>)

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>