> For the complete documentation index, see [llms.txt](https://joungkyun.gitbook.io/php-mod_korean-extension-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://joungkyun.gitbook.io/php-mod_korean-extension-reference/apis/check/check_htmltbale_lib.md).

# check\_htmltbale\_lib

## Proto type

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

## See also

None
