/** * print_r the contents of the variable $var along with a full function backtrace to indicate where in the program this is occurring (great for debugging) * * @param mixed $var Variable to print * @param boolean $supressBacktrace True if you wish to suppress the backtrace (default: False) */ function echo_r($var, $supressBacktrace = 0) { if (!$supressBacktrace) { EchoBacktrace(); } echo '<pre>'; print_r($var); echo '</pre>'; }
/** * print_r the contents of the variable $var along with a full function backtrace to indicate where in the program this is occurring (great for debugging) * * @param mixed $var Variable to print * @param boolean $supressBacktrace True if you wish to suppress the backtrace (default: False) */ function echo_r($var, $showBacktrace = NULL) { if (is_null($showBacktrace)) { $showBacktrace = Config::get('zinc.debug.echorShowBacktrace'); } if ($showBacktrace) { EchoBacktrace(); } echo '<pre>'; print_r($var); echo '</pre>'; }
<?php EchoBacktrace(); /** * Spyc -- A Simple PHP YAML Class * @version 0.2.(5) -- 2006-12-31 * @author Chris Wanstrath <*****@*****.**> * @author Vlad Andersen <*****@*****.**> * @link http://spyc.sourceforge.net/ * @copyright Copyright 2005-2006 Chris Wanstrath * @license http://www.opensource.org/licenses/mit-license.php MIT License * @package Spyc */ /** * A node, used by Spyc for parsing YAML. * @package Spyc */ class YAMLNode { /**#@+ * @access public * @var string */ var $parent; var $id; /**#@+*/ /** * @access public * @var mixed */ var $data;