From b17c9ee6046735433e4ba037c9b60c5f592bd15e Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 09:12:28 +0200 Subject: /php/move.php --- php/misc.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'php/misc.php') diff --git a/php/misc.php b/php/misc.php index 69cd654..556d411 100644 --- a/php/misc.php +++ b/php/misc.php @@ -9,5 +9,13 @@ function generate_email_verification_link() } +function var_error_log( $object=null ){ + ob_start(); // start buffer capture + var_dump( $object ); // dump the values + $contents = ob_get_contents(); // put the buffer into a variable + ob_end_clean(); // end capture + error_log( $contents ); // log contents of the result of var_dump( $object ) +} + ?> -- cgit v1.2.3