Here’s a cool trick for logging the state of the stack at any point in PHP:
error_log( var_export( ( new Exception() )->getTraceAsString(), true ) );
Only uses standard functions too 👍
Here’s a cool trick for logging the state of the stack at any point in PHP:
error_log( var_export( ( new Exception() )->getTraceAsString(), true ) );
Only uses standard functions too 👍
–––––––