當前位置: 首頁> 函數類別大全> filetype

filetype

獲取文件類型
名稱:filetype
分類:文件系統
所屬語言:php
一句話介紹:返回文件類型。

實例

例子1

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">filetype</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

輸出:

 file

例子2

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">filetype</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"images"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

輸出:

 dir
同類函數
  • 返回文件指針讀/寫的位置 ftell

    ftell

    返回文件指針讀/寫的位置
  • 返回符號鏈接的目標 readlink

    readlink

    返回符號鏈接的目標
  • disk_free_space 的別名 diskfreespace

    diskfreespace

    disk_free_space的別名
  • 輕便的諮詢文件鎖定 flock

    flock

    輕便的諮詢文件鎖定
  • 拷貝文件 copy

    copy

    拷貝文件
  • 輸出文件指針處的所有剩餘數據 fpassthru

    fpassthru

    輸出文件指針處的所有剩餘數據
  • 獲取文件所有者 fileowner

    fileowner

    獲取文件所有者
  • 改變文件模式 chmod

    chmod

    改變文件模式
熱門文章