file_get_contents
Lesen Sie die gesamte Datei in eine Zeichenfolge durch
<span class="token php language-php"><span class="token delimiter important"><? Php</span> <span class="token keyword">echo</span> <span class="token function">file_get_contents</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>
输出 :
Dies ist eine Testdatei mit Testtext.