zlacker

[parent] [thread] 0 comments
1. within+(OP)[view] [source] 2022-12-08 20:30:09
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.

[go to top]