aboutsummaryrefslogtreecommitdiffstats
path: root/php/misc.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/misc.php')
-rw-r--r--php/misc.php8
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 )
+}
+
?>