> 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/filesystem/getfiletype_lib.md).

# getfiletype\_lib

## Proto type

```c
string getfiletype_lib (string filename)
```

## Description

해당 파일의 확장자를 반환한다.

## Arguments

```
(string) filename - file name or path
```

## Example

```php
<?php
$a = getfiletype_lib ('aaa.txt');
# print "txt"
echo $a;
?>
```

## See also

None
