Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
ma3x_ip каза:$data = file("msg.html"); //взима съдържанието на файла
можели по подробно че това него разбрах?
deam0n каза:Ако знаеш функцията file_get_contents(), то file() е идентична с нея.
Взима съдържанието на файла.
<?php
$data = file("msg.html");
foreach ($data as $line) {
echo $line;
}
?>
<?= echo file_get_contents("msg.html"); ?>