ᐧ

On Fri, Jan 31, 2014 at 12:11 PM, Anthony Ferrara <ircmax...@gmail.com>wrote:

> In short, the only form of variable-variables that I believe should
> **ever** be used are variable object property/method references:
>
> $obj->$property = blah;
> $obj->$method();
>
> Any other usage is simply mis-using variables where you should use a more
> appropriate data structure (like an array or object)...
>

I'd add:

new $className(...);

--j
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/show-participation

Reply via email to