What is the best way of checking if input is numeric?
Those kind of numbers should not be valid. Onl
The most secure way
if(preg_replace('/^(\-){0,1}[0-9]+(\.[0-9]+){0,1}/', '', $value) == ""){ //if all made of numbers "-" or ".", then yes is number; }