public static function numericality($cls, $id, $attr, $attr_value, $validation_value, $options)
    {
        return preg_match("/^[-\.0-9]+$/", trim($attr_value));
    }
public static function numericality($cls, $id, $attr, $attr_value, $validation_value, $options)
    {
        return preg_match("/^[-\.0-9]+$/", trim($attr_value));
    }
public static function numericality ( $ cls , $ id , $ attr , $ attr_value , $ validation_value , $ options ) { return preg_match ( "/^[-\.0-9]+$/" , trim ( $ attr_value ) ) ; }
Check if an attribute is numeric

@param string $cls              class
@param mixed  $id               id
@param string $attr             attribute
@param mixed  $attr_value       attribute value
@param mixed  $validation_value validation value
@param mixed  $options          options

@return valid or not
Check if an attribute is numeric