| filetype() | ใช้คืนค่าประเภทของไฟล์ ( จะคืนค่า false กลับมาถ้าหากผิดพลาด ) |
|---|
function:filetype ( filename );
return type:string
content:ใช้คืนค่าประเภทของไฟล์ ( จะคืนค่า false กลับมาถ้าหากผิดพลาด )
example:echo filetype ( "bamboo.txt" );
comment:ประเภทของไฟล์ได้แก่ block, char, dir, fifo, file, link, unknown