|
From: Benjamin C. <bc...@us...> - 2002-03-20 20:00:19
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv10403/inc
Modified Files:
functions.php
Log Message:
Added dump(), a debugging aid
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- functions.php 18 Mar 2002 16:21:42 -0000 1.9
+++ functions.php 20 Mar 2002 20:00:14 -0000 1.10
@@ -373,4 +373,14 @@
return $retstr;
}
+// Dump a var
+function dump($var, $title = '') {
+ if ($title) {
+ echo "<b>$title</b><br>";
+ }
+ echo '<pre>';
+ print_r($var);
+ echo '</pre>';
+}
+
?>
|