I have the following array:
Array (
[0] => 1
[1] => 2
[2] => 2
[3] => 4
[4] => 4
[5] => 8)
I want to remove some items of the array but by value, not by key. How I can do that if I want to remove all the items with the value "4", or with the value "x"?