Aktueller Standort: Startseite> Funktionskategorien> file

file

Lesen Sie die gesamte Datei in ein Array
Name:file
Kategorie:Dateisystem
Programmiersprache:php
Kurzbeschreibung:Lesen Sie die Datei in ein Array.

实例

<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">Datei</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>

输出 :

 Array
(
[0] => Hallo Welt. Tests!
[1] => An einem anderen Tag, einer weiteren Zeile.
[2] => Wenn das Array diese Zeile aufnimmt,
[3] => Ist es dann eine Abholzeile?
)
Ähnliche Funktionen