* add to script: * require_once('debug.php'); */ function printr($var, $name=null) { echo '
'; if (!empty($name)){ echo $name.' =
'; } if (is_array($var)) { foreach ( $var as $key => $value ){ if ( is_array($var[$key]) ) { print_r(array_map("htmlspecialchars", $value)); } else { print_r(htmlspecialchars($value)); } } } else { print_r(htmlspecialchars($var)); } echo '