Hi,
I have a problem trying to find whether a pattern (a string) occurs in a string.
eg
$num can either be "1.12", "1.32, 1.123", "1.12, 1.123" etc
if I want to search the string for 1.12 and return true if it is present how would I do that?
I tried
ereg("1.12", $num)
but that returned true for the set that contained "1.32, 1.123"
also, I can't search for "1.12," since not all sets have a comma in them.
There must be a way to search for a specific term?