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

file

ファイル全体を配列に読んでください
名前:file
カテゴリ:ファイルシステム
対応言語:php
一言説明:ファイルを配列に読み取ります。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token function">print_r</span> <span class="token punctuation">(</span> <span class="token function">file</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>

输出:

配列
(
[0] => Hello World。テストテスト!
[1] =>別の日、別の行。
[2] =>配列がこの行を選択した場合、
[3] =>では、ピックアップラインですか?
))
類似の関数
  • プロセスファイルポインターを開きます popen

    popen

    プロセスファイルポインターを開きます
  • ファイルのイノード変更時間を取得します filectime

    filectime

    ファイルのイノード変更時間を取得します
  • ファイルのイノードを取得します fileinode

    fileinode

    ファイルのイノードを取得します
  • ファイルまたはシンボル接続に関する情報を提供します lstat

    lstat

    ファイルまたはシンボル接続に関する情報を
  • 指定されたファイル名が通常のファイルであるかどうかを判断します is_file

    is_file

    指定されたファイル名が通常のファイルであ
  • ファイルシステムまたはディスクパーティションで使用可能なスペースを返します disk_free_space

    disk_free_space

    ファイルシステムまたはディスクパーティシ
  • バッファーコンテンツをファイルにエクスポートします fflush

    fflush

    バッファーコンテンツをファイルにエクスポ
  • ファイルポインターが読み取り/書き込みの場所を返します ftell

    ftell

    ファイルポインターが読み取り/書き込みの