PHP mod_korean extension Reference
  • Introduction
  • Installation
  • APIs
    • Check Functions
      • check_filename_lib
      • check_htmltbale_lib
      • check_uristr_lib
      • get_microtime_lib
      • human_fsize_lib
      • is_email_lib
      • is_hangul_lib
      • is_iis_lib
      • is_url_lib
      • is_windows_lib
      • buildno_lib
      • version_lib
    • Filesystem Functions
      • filelist_lib
      • getfile_lib
      • getfiletype_lib
      • putfile_lib
      • readfile_lib
      • pcregrep_lib
    • HTML Functions
      • agentinfo_lib
      • autolink_lib
      • get_hostname_lib
      • movepage_lib
      • perror_lib
      • pnotice_lib
    • Charset Functions
      • ncrencode_lib
      • ncrdecode_lib
      • uniencode_lib
      • unidecode_lib
      • utf8encode_lib
      • utf8decode_lib
      • substr_lib
      • postposition_lib
    • Image Functions
      • imgresize_lib
    • Mail Functions
      • mailsource_lib
      • sockmail_lib
Powered by GitBook
On this page
  • Proto type
  • Description
  • Arguments
  • Example
  • See also

Was this helpful?

  1. APIs
  2. Check Functions

check_uristr_lib

Proto type

int check_uristr_lib (string string)

Description

문자열에 메타 캐릭터가 존재할 경우, 1을 리턴한다. 이 함수에서 걸리는 문자는 한글,알파벳, _, - 문자를 제외하고는 모두 에러메세지가 출력된다.

check_filename_lib 함수와의 다른점은 도트(.) 문자를 허락하지 않는다는 점이다.

Arguments

  • (string) string - 검사할 문자열

Example

$s = "asdf..asdf";
if ( check_uristr_lib ($s)) {
  echo "사용할 수 없는 문자가 들어 있습니다.\n";
  exit;
}

See also

Previouscheck_htmltbale_libNextget_microtime_lib

Last updated 5 years ago

Was this helpful?

check_filename_lib ()