src/bbn/str.php
public static function is_number(): bool
  {
    $args = \func_get_args();
    foreach ( $args as $a ){
      if ( \is_string($a) || (abs($a) > PHP_INT_MAX) ){
        if ( !preg_match('/^-?(?:\d+|\d*\.\d+)$/', $a) ){
          return false;
        }
      }
      else if ( !\is_int($a) && !\is_float($a) ){
        return false;
      }
    }
    return 1;
  }
public static function is_number(): bool
  {
    $args = \func_get_args();
    foreach ( $args as $a ){
      if ( \is_string($a) || (abs($a) > PHP_INT_MAX) ){
        if ( !preg_match('/^-?(?:\d+|\d*\.\d+)$/', $a) ){
          return false;
        }
      }
      else if ( !\is_int($a) && !\is_float($a) ){
        return false;
      }
    }
    return 1;
  }
public static function is_number ( ) : bool { $ args = \ func_get_args ( ) ; foreach ( $ args as $ a ) { if ( \ is_string ( $ a ) || ( abs ( $ a ) > PHP_INT_MAX ) ) { if ( ! preg_match ( '/^-?(?:\d+|\d*\.\d+)$/' , $ a ) ) { return false ; } } else if ( ! \ is_int ( $ a ) && ! \ is_float ( $ a ) ) { return false ; } } return 1 ; }
Checks if the item is a number.
Can take as many arguments and will return false if one of them is not a number.

```php
\bbn\x::dump(\bbn\str::is_number([1, 2]));
// (bool) false
\bbn\x::dump(\bbn\str::is_number(150);
// (bool) 1
\bbn\x::dump(\bbn\str::is_number('150'));
// (bool)  1
\bbn\x::dump(\bbn\str::is_number(1.5);
// (bool) 1
```

@param mixed $st The item to be tested.
@return bool
Checks if the item is a number . Can take as many arguments and will return false if one of them is not a number .