diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 09:12:28 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 09:12:28 +0200 |
commit | b17c9ee6046735433e4ba037c9b60c5f592bd15e (patch) | |
tree | 55726d2a51f187060e14d31bee2388f9aabe2b5b /php/misc.php | |
parent | 34df293dec1ee19cde50e33f757c8eefdbfc33d9 (diff) | |
download | fileup-b17c9ee6046735433e4ba037c9b60c5f592bd15e.tar.gz |
/php/move.php
Diffstat (limited to 'php/misc.php')
-rw-r--r-- | php/misc.php | 8 |
1 files changed, 8 insertions, 0 deletions
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 ) +} + ?> |