現在の位置: ホーム> 関数カテゴリ一覧> 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>

出力:

ファイル

例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>

出力:

監督
類似の関数
  • ファイルポインターから行を読んで、CSVフィールドを解析する fgetcsv

    fgetcsv

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

    stat

    ドキュメントに関する情報を提供します
  • 実際のパスバッファーのサイズを取得します realpath_cache_size

    realpath_cache_size

    実際のパスバッファーのサイズを取得します
  • 開いたファイルポインターを介してファイル情報を取得します fstat

    fstat

    開いたファイルポインターを介してファイル
  • 開いたファイルポインターを閉じます fclose

    fclose

    開いたファイルポインターを閉じます
  • ファイルアクセスと変更時間を設定します touch

    touch

    ファイルアクセスと変更時間を設定します
  • ファイルのイノードを取得します fileinode

    fileinode

    ファイルのイノードを取得します
  • バッファーコンテンツをファイルにエクスポートします fflush

    fflush

    バッファーコンテンツをファイルにエクスポ