码迷,mamicode.com
首页 > Web开发 > 详细

这样就算会了PHP么?-10

时间:2014-10-29 16:45:34      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   for   sp   文件   

关于基本的文件读写内容:

<?php
    echo "readfile function:<br>";
    readfile("tm.txt");
    echo "<br>";
    echo "file function:<br>";
    $f_arr = file("tm.txt");
    foreach ($f_arr as $cont) {
        echo $cont."<br>";
    }
    echo "file_get_contents function:<br>";
    $f_chr = file_get_contents(‘tm.txt‘);
    echo $f_chr;
    
    
?>

bubuko.com,布布扣

这样就算会了PHP么?-10

标签:style   blog   http   io   color   ar   for   sp   文件   

原文地址:http://www.cnblogs.com/aguncn/p/4059621.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!