Welcome Guest, Not a member yet? Register   Sign In
Does this small piece of code seem ok?
#5

That is an awesome solution!!!!

At first I was concerned that it was worse as it might hit the memory limit as php has to remember all the deeper and deeper levels of functions within functions, but that is not how PHP works in this case (I think). It seems that it assigns the function to the variable, returns that, 'level' closed, then re-evaluates it.

That lead me to this: http://www.phptherightway.com/pages/Func...mming.html which was interesting too but I really must get back to what I was doing :-)

I am definitely going to use that function - thank you!

Paul.
Reply


Messages In This Thread
Does this small piece of code seem ok? - by PaulD - 10-30-2015, 09:02 AM
RE: Does this small piece of code seem ok? - by PaulD - 10-30-2015, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB