How to print a debug log?

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

    You can use error_log to send to your servers error log file (or an optional other file if you'd like)

提交回复
热议问题