/* 42. Write a PHP script to delete a specific value from an array using array_filter() function. */ 'Red', 'key2' => 'Green', 'key3' => 'Black'); $given_value = 'Black'; print_r($colors); $new_filtered_array = array_filter($colors, function ($element) use ($given_value) { return ($element != $given_value); } print_r($filtered_array); print_r($new_filtered_array); ?>