Remove items from one list in another in PHP
PHP: How to remove specific element from an array?
array_searchto get the key and remove it with unset if found:
And if there can be multiple items with the same value, you can use
array_keysto get the keys to all items: