>>18
If you are using a function to escape things in SQL, you are probably doing it wrong (the interface should escape all the parameters for you, instead of making you interpolate them into the string yourself)
>>19
PHP does not really support a functional paradigm. Its anonymous functions are not really anonymous, have no supporting syntax (function body is a fucking string of code), and definitely do not support lexical closures. What sort of 'functional-style' stuff are you doing?