字符串
error_log(date('Y-m-d h:i:s')."\r\n".$str,3,'/errors.log');
error_log($str,3,'/errors.log');
数组
error_log(print_r( $message, true ),3,'/errors.log');
字符串
error_log(date('Y-m-d h:i:s')."\r\n".$str,3,'/errors.log');
error_log($str,3,'/errors.log');
数组
error_log(print_r( $message, true ),3,'/errors.log');
转载于:https://my.oschina.net/osgrace/blog/843430