In C#/.NET, I can use Trace.Write or Debug.Write to output application specific diagnostics. What would be the equivalent in PHP? echo is outputting to my web page which I don't want.
1条回答 默认 最新
- drhdjp97757 2014-04-23 22:22关注
You could write data to the error_log using
error_log()
Via the second argument you can select the type of logging you want, such as file logging, system logging or even email.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报