I am needing to delete the first occurence of an item in an array..
Such as this an array contains these items.
$array = array("One", "Two", "One", "Two");
$item = "Two";
How can I delete the first occurence of $item inside of $array, and only the first occurence?
So after that item was deleted it should only be "One, One, Two", so how would I do this?
Thanks for any help. 🙂