現在の位置: ホーム> 関数カテゴリ一覧> filemtime

filemtime

ファイルの変更時間を取得します
名前:filemtime
カテゴリ:ファイルシステム
対応言語:php
一言説明:ファイルの最後の変更時間を返します。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">filemtime</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 keyword">echo</span> <span class="token string double-quoted-string">"last modified:"</span> <span class="token operator">。</span><span class="token function">日付</span><span class="token punctuation">(</span> <span class="token string double-quoted-string">"f d yh:i:s。"</span> <span class="token punctuation">、</span> <span class="token function">filemtime</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 punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出:

 1139919766
最終修正:2006年2月14日13:22:46。
類似の関数
  • RealPathキャッシュエントリを取得します realpath_cache_get

    realpath_cache_get

    RealPathキャッシュエントリを取得
  • ファイルまたはURLを開きます fopen

    fopen

    ファイルまたはURLを開きます
  • ファイルからのフォーマット入力 fscanf

    fscanf

    ファイルからのフォーマット入力
  • ドキュメントに関する情報を提供します stat

    stat

    ドキュメントに関する情報を提供します
  • ファイルポインターから行を読んで、CSVフィールドを解析する fgetcsv

    fgetcsv

    ファイルポインターから行を読んで、CSV
  • ファイルステータスキャッシュをクリアします clearstatcache

    clearstatcache

    ファイルステータスキャッシュをクリアしま
  • 取得したファイルのグループ filegroup

    filegroup

    取得したファイルのグループ
  • ディレクトリを削除します rmdir

    rmdir

    ディレクトリを削除します
人気記事(にんききじ)