Example of directly calling the content of a text file using a PHP program_PHP Tutorial

WBOY
Release: 2016-07-13 17:29:59
Original
1036 people have browsed it

How to call the content of a text file?




Calling text file content



// While opening the file, print each line
$myFile = file( "data.txt");
for($index = 0; $index < count($myFile); $index++)
{
print($myFile[$index]."
");
}
?>
< /CENTER>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509210.htmlTechArticleHow to call the text file content? HTML HEAD TITLE calls the text file content/TITLE /HEAD BODY CENTER? //Open the file At the same time, print each line $myFile=file("data.txt"); for($index=0;$ind...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!