[PHP] is this correct? regular expressions
just trying to say if $phone isn't all numbers set it to all zeros.. so is that right? cause i can't seem to get it to work. if (!ereg(^[0-9]$,$phone)) { $phone = 00; } thanks!
Re: [PHP] is this correct? regular expressions
At 23:22 25.03.2003, Jay Paulson said: [snip] just trying to say if $phone isn't all numbers set it to all zeros.. so is that right? cause i can't seem to get it to work. if (!ereg(^[0-9]$,$phone)) { $phone = 00; } thanks!