Sorry about the confusing subject 🙂
Here is my problem:
I have a string:
$s = "2 3 4 5 9 11"
I want to know if the variable $n = 1 is present in that string ($s).
when I use:
if (ereg($n, $s))
the result is true because it sees '11' as a pattern containing the number 1! But this is not what I want. The string does not contain a number 1 on it's own so it should be false.
I have tried various reg exps with no luck. Can someone please tell me where I'm going wrong?
Cheers,
April