Tag: recursion

  • PHP + Recursion + loop + global array = trouble

    Once again, I came across an issue that I racked my brain about for hours, if not days: I had written a recursive function in PHP that should run through a globally declared array with a foreach loop and then restart itself if necessary. Everything ran perfectly well – but only on my local server.…