在PHP中使用error_log时如何保存行号?
在PHP中使用error_log(..)时,我想指定发生错误的行:在PHP中使用error_log时如何保存行号?,php,error-logging,error-log,Php,Error Logging,Error Log,在PHP中使用error_log(..)时,我想指定发生错误的行: error_log("something bad happened on line $LINE"); 我该怎么做 您应该使用一个名为\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu,因此: error_log("something bad happened on line ".__LINE__);
error_log("something bad happened on line $LINE");
我该怎么做 您应该使用一个名为\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
,因此:
error_log("something bad happened on line ".__LINE__);