Or the PHP code where someone has a series of if/switch statements to build up a function name piece by piece, and then calls the string to execute the function. Yes, putting a string in a variable and calling it is real in PHP. And yes, it’s terrible idea
View all comments
Show parent comment
5
u/Tofurama3000 Oct 04 '26
Or the PHP code where someone has a series of if/switch statements to build up a function name piece by piece, and then calls the string to execute the function. Yes, putting a string in a variable and calling it is real in PHP. And yes, it’s terrible idea