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

filesize

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

實例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">filesize</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>

輸出:

 20
同類函數
  • 獲取文件大小 filesize

    filesize

    獲取文件大小
  • 同步對文件的更改(包括元數據) fsync

    fsync

    同步對文件的更改(包括元數據)
  • 將數據(但不是元數據)同步到文件 fdatasync

    fdatasync

    將數據(但不是元數據)同步到文件
  • 用模式匹配文件名 fnmatch

    fnmatch

    用模式匹配文件名
  • disk_free_space 的別名 diskfreespace

    diskfreespace

    disk_free_space的別名
  • 解析配置字符串 parse_ini_string

    parse_ini_string

    解析配置字符串
  • 修改符號鏈接的所有者 lchown

    lchown

    修改符號鏈接的所有者
  • 返迴路徑中的目錄部分 dirname

    dirname

    返迴路徑中的目錄部分
熱門文章