課程
/后端開發(fā)
/PHP
/PHP進(jìn)階篇
需要先重寫文件中內(nèi)容,之后再輸出。
2014-11-25
源自:PHP進(jìn)階篇 5-1
正在回答
<?php?
$file='a.txt';
$currentt=file_get_contents($file);
$current .=“abc”;
file_put_contents($file,$current);
?>
舉報(bào)
輕松學(xué)習(xí)PHP中級(jí)課程,進(jìn)行全面了解,用PHP快速開發(fā)網(wǎng)站程序
3 回答$this
1 回答$this->speed -=10;
3 回答為什么是return $this->name; 而不是return $this->$name;
2 回答static 對(duì)$this的影響
3 回答this是什么意思?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-12-27
<?php?
$file='a.txt';
$currentt=file_get_contents($file);
$current .=“abc”;
file_put_contents($file,$current);
?>