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_htmltbale_lib

Proto type

int check_htmltable_lib (string text)

Description

html 을 사용하여 글을 쓰기가 가능할 때 table 입력이 잘못되어 디자인이 망가지는 것을 방지하거 나 또는 table 태그를 제대로 사용하였는지 체크를 하여 에러 코드를 반환하는 함수이다.

RETURN VALUE:

  • 0 => 올바른 태그 사용 (OK)

  • 1 => open 된 table tag 수와 close 된 table tag 수가 틀림

  • 2 => table 에 제대로 열리지 않았거나 또는 닫히지 않았음

  • 3 => table 의 열고 닫는 순서가 틀렸거나 제대로 되어 있지 않음

Arguments

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

Example

<?php
$str = "<table><tr><td>";
if ( check_htmltable_lib ($str) ) {
    echo "TABLE 태그를 잘못 사용하였습니다.\n";
    exit;
}
?>

See also

None

Previouscheck_filename_libNextcheck_uristr_lib

Last updated 5 years ago

Was this helpful?