I have a variable like this:
33,100,200
I need to detect if it contains a specific number, say
if(var contains '33'){
do stuff
}
But it has to not work if say they didn’t have 333 in the variable the above statement shouldn’t validate the if statement.
Edit: This is a string not an array.
Either
explode&in_arrayroute, orpreg_match('/(?<![0-9])33(?![0-9])/',$string)route, I prefer the first.