function check_kontonr($str) { if (! ctype_digit ( $str )) return false; return true; } function check_blz($str) { if (strlen ( $str ) != 8 || ! ctype_digit ( $str )) return false; return true; }