I am wondering if anyone knows how functions take up memory in PHP. For example, I'm re-doing a project that was one huge honkin IF/ELSE statement (about 900 lines) into functions. Some are reused through out the code, a few are not.
I would assume that PHP frees up the memory that a local variable takes up after a function is complete. Yes?
How does PHP allocate memory for a function? at runtime? or when it needs to use it?
And, it all comes down to... am I saving more memory by using functions?
Thanks for any help 🙂
Nola