Recursive Programming

While trying to build a recursive function yesterday, I realized my understanding of recursive PHP is pretty weak. I am still working on the same thing today… it should not be as hard as it is.

I am trying to build an array in PHP of my team members, with each level nested under their team lead. I need recursion so it can go N levels deep.

I have been referencing this code, but my code keeps running into infinite loops.

I think I need to back off and look at the problem from a high level again.

Published by

Joel Gross

Joel Gross is the CEO of Coalition Technologies.