Step 1) create a temp variable that does not have the commas in it [man]str_replace[/man]
Step 2) test your temp variable with [man]is_numeric[/man]
Step 3) If the temp variable validates so does your original variable.
Step 4) Take a course in criritcal analysis.