📜  如何检查 fwrite 是否失败 php 代码示例

📅  最后修改于: 2022-03-11 14:53:39.802000             🧑  作者: Mango

代码示例1
fOpen("TestFile.txt", "w+");

if(fwrite("Test data") === false){
    
    echo("Data writing failed.");
    
}else{
    
    echo("Data writing successfull.");
}

fclose();