php file 与 file_get_contents函数
简单的讲: file读取文件以数组形式返回,file_get_contents读取文件以字符串形式返回! 比如读取一个data.txt的文本文件。 <?php $file=file("data.txt"); $file_get_contents=file_get_contents("data.txt"); echo "file 数组,一行一个!<br><br>"; print_r($file); echo "<br><hr>file_get_contents,字符串。<br><br>"; print_r($fil
科普 2,964
