[PHP] Re: Ereg headache

2002-11-15 Thread Gustaf Sjoberg
or.. if there can be only one instance of the number you can easily calculate it's position with strlen($numbers) and strpos($numbers, "1"); if strlen returns 5 and strpos 5 you'll know it was far right.. if strpos returns 1 and strlen >1 it's to the left.. and if strpos < strlen but not 1 it'

[PHP] Re: Ereg headache

2002-11-15 Thread Gustaf Sjoberg
hi, this is probably not at all what you want, but i wrote it just in case. if 1 is in the string it will return either "middle", "left", "right" or "only".. if it is not it will return false. On Fri, 15 Nov 2002 08:49:23 -0800 (PST) [EMAIL PROTECTED] (Mako Shark) wrote: >I have a real proble