Hi. I have a database entry that looks like this:
$entry = '2-4-6-8';
I need to seach $entry for a number. What I tried was to explode - in the variable but now I'm stuck with searching for the number.
What I want is something like this:
// if $entry contains a 4 do something
// else
// do something else
FYI: The number of values in the variable (between dashes) could be unlimited.
Any help is appreciated.