} } if (array_key_exists("bidLog", $_POST)) { $bid = $_POST["bidLog"]; if (strlen($bid) > 0) { echo "<h3>bidLog</h3>"; processLog($bid, $imprName, $bidMoreInfo); } #echo $bid; } if (array_key_exists("imprLog", $_POST)) { $impr = $_POST["imprLog"]; if (strlen($impr) > 0) { echo "<h3>imprLog</h3>"; processLog($impr, $imprName, $imprMoreInfo); } #echo $impr; } if (array_key_exists("pvLog", $_POST)) { $pv = $_POST["pvLog"]; $pv = str_replace("\\,", "#&@!", $pv); if (strlen($pv) > 0) { echo "<h3>pvLog</h3>"; processLog($pv, $pvName, $pvMoreInfo); } #echo $pv; } ?> </body> </html>
/** * Traces variable using preformated text prefixed with a label * * @param mixed $var Data to dump * @param string $label Add an optional label * @param bool $log Log to file or echo data * * @return string|int The processed log or the size of the data written in the log file **/ function mbExport($var, $label = null, $log = false) { return processLog(var_export($var, true), $label, $log); }