Sorry, I have the following dummy question:
So I get the number from html form and want to make
siple check. It should be no more then 3 digits number but can be less and should contain only digits of course,
so I'll try the following with ereg
ereg("[0-9]{3}") but it requires always only 3 digit number, but I want to check the 2 and 1 digit-numbers as well.For example 1 10 123 in one ereg expression? I found out that to use the is_numeric is possible, but it's only for numbers, and it's just interesting to know ,whether it's possible with ereg? Thanks