Recursively unset an array key


/ Published in: PHP
Save to your folder(s)

This function takes an array and a key that is unwanted. It will recurse through and unset the key in the argument array and all its sub-arrays.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.