看到一个例子,打开文件有写到一个rb,这个是什么意思?
小天
小天 2016-12-17 14:22:00
0
2
3098
$fp = fopen('./text.txt', 'rb');
while(!feof($fp)) {
    echo fgets($fp); //读取一行
}
fclose($fp);


小天
小天

勇敢站起来快步向前冲是你唯一的出路

reply all(2)
数据分析师

I saw an example. When opening a file, an rb was written to it. What does this mean? -PHP Chinese website Q&A-I saw an example where an rb was written to a file when opening it. What does this mean? -PHP Chinese website Q&A

Please watch and learn.

迷茫

它是代表二进制的意思。只有r表示只读方式打开,rb表示只读方式打开一个二进制文件

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!