News for hackers. Stuff that matters.
Re:PHP 8.2 by withinboredom on Thursday December 08, 2022 @03:30PM (#33912922)
But it lets you do things that are absolutely wild without weird syntax or setting up reflection. $obj->$dynamic_var. Or $$dynamic_obj->$dynamic_fun().

Whether or not you should be doing that is another matter… but it’s useful in some cases and easier to grok than using reflection or using array syntax on an object (like JavaScript).

After awhile, you don’t even notice the $ to be honest.

There are no comments on this comment yet.