PHP/file_get_contents()

解説 ファイルの内容をすべて取得する。

URLを指定してウェブサイトのソースを取得することもできる。

sample1
abc
sample1code
$s1File = file_get_contents("php.txt");
echo $s1File;