shudder, (edited )
@shudder@phpc.social avatar

@bobmagicii That's lazy code and I happen to used it yesterday in a test utility method. It was removing nodes from nested assoc array based on given list of paths (Iterate paths, iterate path segments and jump to next path if ref not found).

Production code wouldn't need it, because you'd have method removing single path with early return (skipping unset() after the inner loop).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines