PHP: How to remove specific element from an array?
- by dcp3450
How do I remove an element from an array when I know the elements name? for example:
I have an array:
$array = (apple, orange, strawberry, blueberry, kiwi);
the user enters strawberry
strawberry is removed.