Position actuelle: Accueil> Catégories de fonctions> file_get_contents

file_get_contents

Lisez le fichier entier dans une chaîne
Nom:file_get_contents
Catégorie:Système de fichiers
Langage de programmation:php
Description en une ligne:Lisez le fichier dans une chaîne.

实例

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

 Il s&#39;agit d&#39;un fichier de test avec du texte de test.
Fonctions similaires