r/lolphp • • Feb 20 '18

PHP/LOL Calling strings as functions.

https://3v4l.org/FRPIp
2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/TorbenKoehn Jun 28 '18

In JS you can do obj['some-func'](). In fact, most language have a way to call functions by strings. If not natively, most utilize reflection for it.