src/bbn/str.php
public static function check_filename(): bool
  {

    $args = \func_get_args();
    // Each argument must be a string starting with a letter, and having than one character made of letters, numbers and underscores
    foreach ( $args as $a ){
      if ( !\is_string($a) || (strpos($a, '/') !== false) || (strpos($a, '\\') !== false) ){
        return false;
      }
    }
    return true;
  }
public static function check_filename(): bool
  {

    $args = \func_get_args();
    // Each argument must be a string starting with a letter, and having than one character made of letters, numbers and underscores
    foreach ( $args as $a ){
      if ( !\is_string($a) || (strpos($a, '/') !== false) || (strpos($a, '\\') !== false) ){
        return false;
      }
    }
    return true;
  }
public static function check_filename ( ) : bool { $ args = \ func_get_args ( ) ; // Each argument must be a string starting with a letter, and having than one character made of letters, numbers and underscores foreach ( $ args as $ a ) { if ( ! \ is_string ( $ a ) || ( strpos ( $ a , '/' ) !== false ) || ( strpos ( $ a , '\\' ) !== false ) ) { return false ; } } return true ; }
Checks if a string doesn't contain a filesystem path.

```php
\bbn\x::dump(\bbn\str::check_filename("Paul"));
// (bool) true
\bbn\x::dump(\bbn\str::check_filename("Paul/"));
// (bool) false
```

@return bool
Checks if a string doesn t contain a filesystem path .