RE: [PHP-DEV] arithmetic operators in member variable assignments
| From: | Sam Leibowitz | Date: | Sat, 12 Aug 2000 15:59:07 +0000 |
| Subject: | RE: [PHP-DEV] arithmetic operators in member variable assignments | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28693@lists.php.net to get a copy of this message | ||
> >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@btcwcu.org)