PHP Validation

And if you want to strip non-numeric characters, instead of just determining whether the string contains them:

Code:
$string = preg_replace('/[^0-9]/', '', $string);
 
Back
Top Bottom