Location: PHPKode > scripts > Price Comparison Shopping by DataFeedFile > price-comparison-shopping-by-datafeedfile/include/DFF_debug.func.php
<?php
function microtime_float(){
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}

function DFFDebug($input, $name = "Debug", $ip = ''){

	$do_debug = FALSE;
	if($ip!=''){
		if($ip == DFF_REAL_IP) $do_debug = TRUE;
	} else {
		$do_debug = TRUE;
	}
	
	if($do_debug){
		if(is_array($input)){
			echo '$'.$name.': <pre>'.print_r($input,TRUE).'</pre><br>';
		} else {//if not array
			echo "$".$name;
			echo " = $input<br>";
		}
	}
	
}
?>
Return current item: Price Comparison Shopping by DataFeedFile