Skip to content

Instantly share code, notes, and snippets.

@thefyfy
Created December 13, 2011 10:35
Show Gist options
  • Save thefyfy/1471603 to your computer and use it in GitHub Desktop.
Save thefyfy/1471603 to your computer and use it in GitHub Desktop.
<?php
class baseblog
{
require_once(dirname(__FILE__)."/../config.inc.php");
public $m_tblConfig;
function __construct()
{
global $tblConfig;
$this->m_tblConfig = & $tblConfig
}
public function dumpPre($mixed = null)
{
echo "<pre>";
var_dump($mixed);
echo "</pre>";
return null;
}
public function dumpRet($mixed = null)
{
ob_start();
var_dump($mixed);
$content = ob_get_contents();
ob_end_clean();
return $content;
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment