public static function safe(string $string) : string
  {
    $split = str_split($string);

    foreach($split as $k => $char) {
      if (str_contains('~!@#$%^&*()_-=+<>/\?;:{}[]|,.', $char)) {
        unset($split[$k]);
      }
    }

    return implode('', $split);
  }
public static function safe(string $string) : string
  {
    $split = str_split($string);

    foreach($split as $k => $char) {
      if (str_contains('~!@#$%^&*()_-=+<>/\?;:{}[]|,.', $char)) {
        unset($split[$k]);
      }
    }

    return implode('', $split);
  }
public static function safe ( string $ string ) : string { $ split = str_split ( $ string ) ; foreach ( $ split as $ k => $ char ) { if ( str_contains ( '~!@#$%^&*()_-=+<>/\?;:{}[]|,.' , $ char ) ) { unset ( $ split [ $ k ] ) ; } } return implode ( '' , $ split ) ; }
Remove special char's from string

@param string $string
@return string
Remove special char s from string