Re: RFC: C-sharp style property get/set syntax for PHP
| From: | Ángel González | Date: | Tue, 30 Nov 2010 23:20:36 +0000 |
| Subject: | Re: RFC: C-sharp style property get/set syntax for PHP | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50740@lists.php.net to get a copy of this message | ||
Richard Quadling wrote:
> (I assume the variable has to be part of the current class or one of its parents?)
Yes. I don't think it makes sense to have a class property actually read
a global.
If a project really need it (eg. some migration from procedural style to
classes), then
use the verbose syntax.