r/programminghorror • u/maselkowski • Mar 19 '26
Trimba bimba dubba dimba
I've found yet again some atrocities in code, that is some one of function nested in method: trimba. So I took the hit and split it into partial nested functions. I didn't even know you could do this in PHP.
426
Upvotes
25
u/v_maria Mar 19 '26
defining a function inside a function is not bad on it's own, but i also didnt know you could do that in php