php dapatkan konten file
<?php
file_get_contents("file.txt");
?>
Exotic Butters
<?php
file_get_contents("file.txt");
?>
<?php
// For input
// Hello World
$a = readline('Enter a string: ');
// For output
echo $a;
?>
<?php
$file = new SplFileObject("file.txt");
while(!$file->eof())
{
echo $file->fgets()."<br/>";
}
$file = null;
?>