php add validation only numbers code example Example: php validate only numbers is_numeric($value); //returns true || false