Recursive functions can be very useful when developing in PHP.
A recursive function is simply a function that calls itself, but why would you want your function to be able to call itself?
They are best used when a problem needs to be solved by breaking it up into a smaller instance of itself. Examples of this Read More →