Created
August 23, 2018 08:29
-
-
Save Inzman/755283ea16ffe0f40a128ce73a6ac633 to your computer and use it in GitHub Desktop.
Remove key from array by value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $to_remove = array('john'); | |
| $result = array_diff($your_array_name, $to_remove); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment