How to print a debug log?

前端 未结 15 1690
北海茫月
北海茫月 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:14

    If you don't want to integrate a framework like Zend, then you can use the trigger_error method to log to the php error log.

提交回复
热议问题