I have and array (from json feed)... that array contain a lot of value, i only need some, so filter is the option...
let say the array contain (a=2,b=4,c=2,d=5,e=6,f=2)
I like to check all the value that is = 2, and DELETE the value that is not = 2
the resulting array will be (a=2, c=2, f=2)
so a foreach or while will print ONLY the value left, 3 of them !
question : how to do this in php ?
Thanks in advance