現在の位置: ホーム> 関数カテゴリ一覧> 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] =>では、ピックアップラインですか?
))
類似の関数
  • ハード接続を作成します link

    link

    ハード接続を作成します
  • 象徴的なつながりを確立します symlink

    symlink

    象徴的なつながりを確立します
  • ファイルパス情報を返します pathinfo

    pathinfo

    ファイルパス情報を返します
  • シンボリックリンクの所有者を変更します lchown

    lchown

    シンボリックリンクの所有者を変更します
  • ファイルのイノード変更時間を取得します filectime

    filectime

    ファイルのイノード変更時間を取得します
  • シンボリックリンクのすべてのグループを変更します lchgrp

    lchgrp

    シンボリックリンクのすべてのグループを変
  • データ(メタデータではなく)をファイルに同期させます fdatasync

    fdatasync

    データ(メタデータではなく)をファイルに
  • 実際のパスバッファーのサイズを取得します realpath_cache_size

    realpath_cache_size

    実際のパスバッファーのサイズを取得します