Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $arr = array('a' => 123, 'b' => 456, 'loeschMich' => 789);
- $gesucht = 789;
- foreach ($arr as $key => &$element) {
- if ($key == $gesucht)
- break;
- }
- unset($arr[$key]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement