Created
February 4, 2016 04:53
-
-
Save catoidrobo/be1336896909ef081ba6 to your computer and use it in GitHub Desktop.
連想配列での特定の要素の削除 値はわかっているがキーがわからないとき
This file contains 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
// "del_value"が消したい要素が持つ値 | |
unset($arr[array_search("del_value", $arr)]); | |
// 検索したらこっちのほうが良いやり方だった | |
// https://teratail.com/questions/413 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment