So I have this array:$arr = ('a' => 343, 'b' => 34, 'c' => 65, 'd' => 465);which could also be$arr = ('a' => 343, 'b' => 34, 'c' => 65);Can the following code be improved into one line?if(isset($arr['d'])) $something = $arr['d'];unset($arr['d']);
Fetching an array value and removing it
php