Implements pl_var_dump.
authorStéphane Jacob <sj@m4x.org>
Sat, 16 Jun 2012 18:18:17 +0000 (20:18 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 16 Jun 2012 18:43:36 +0000 (20:43 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/platal.inc.php

index 6b28abb..f314932 100644 (file)
@@ -285,5 +285,13 @@ function pl_cached_dynamic_content_headers($content_type, $encoding = null)
     pl_cached_content_headers($content_type, $encoding, $globals->dynamic_cache_duration);
 }
 
+function pl_var_dump()
+{
+    echo '<pre>';
+    $array = func_get_args();
+    call_user_func_array('var_dump', $array);
+    echo '</pre>';
+}
+
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>