I need to check in PHP if user entered a decimal number (US way, with decimal point: X.XXX)
Any reliable way to do this?
Simplest solution is
if(is_float(2.3)){ echo 'true'; }