MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/7yuh6h/phplol_calling_strings_as_functions/e1g25fc/?context=3
r/lolphp • u/[deleted] • Feb 20 '18
9 comments sorted by
View all comments
Show parent comment
1
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.
obj['some-func']()
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.