How to print a debug log?

前端 未结 15 1818
北海茫月
北海茫月 2020-12-12 10:07

I\'d like to debug some PHP code, but I guess printing a log to screen or file is fine for me.

How should I print a log in PHP code?

The u

15条回答
  •  执笔经年
    2020-12-12 10:27

    You can use

    
    

    or if you want to print that statement in an log you can use

    AddLog("anypage.php","string: ".$string,ERR_DEBUG_LOW);
    

提交回复
热议问题