function debug( $var, $val) echo "***DEBUGGING\nVARIABLE: $var\nVALUE :"; if (is_array($val) _BAR_ _BAR_ is_object($val) _BAR_ _BAR_ is_resource($val)) print_r($val); else echo "\n$val\n"; echo "***\n";} $c = mysql_connect(); $host = $_SERVER["SERVER_NAME"]; call_user_func_array ('debug', array("host", $host)); call_user_func_array ('debug', array("c", $c)); call_user_func_array ('debug', array("_POST", $_POST));
?php function debug( $var, $val) echo "***DEBUGGING\nVARIABLE: $var\nVALUE :"; if (is_array($val) _BAR_ _BAR_ is_object($val) _BAR_ _BAR_ is_resource($val)) print_r($val); else echo "\n$val\n"; echo "***\n";} $c = mysql_connect(); $host = $HTTP_SERVER_VARS["SERVER_NAME"]; call_user_func_array ('debug', array("host", $host)); call_user_func_array ('debug', array("c", $c)); call_user_func_array ('debug', array("HTTP_POST_VARS", $HTTP_POST_VARS));?