<?php $fruits = ['apple', 'orange', 'melon', 'banana', 'pineapple']; $fruits = array_filter($fruits, function($fruit) { return !in_array($fruit, ['apple', 'orange', 'melon', 'banana']); }); print_r($fruits);
You have javascript disabled. You will not be able to edit any code.