Exemplo n.º 1
0
    _print_string_safely($var_key);
    ?>
')" title="<?php 
    _print_string_safely($var_key);
    ?>
">
						<?php 
    _print_string_safely($var_key);
    ?>
					</a>
					<div id="<?php 
    _print_string_safely($var_key);
    ?>
" class="var-dump" style="display: none;">
						<?php 
    print ICE_Error_Handler::dump($var_value, 10, true);
    ?>
					</div>
				</li><?php 
}
?>
		</ul>

		<h4>
			How to get rid of this error:
		</h4>

		<div id="how-to-disable" class="code">
			To disable error reporting,
			REMOVE the following from nxt-config.php or your functions.php::
			<pre class="code">define('ICE_ERROR_REPORTING', true);</pre>
Exemplo n.º 2
0
 /**
  * Dumps a variable in terms of a string.
  *
  * This method achieves the similar functionality as var\_dump and print\_r
  * but is more robust when handling complex objects.
  * 
  * @param mixed $var variable to be dumped
  * @param integer $depth maximum depth that the dumper should go into the variable. Defaults to 10.
  * @param boolean $highlight whether the result should be syntax-highlighted
  * @return string the string representation of the variable
  */
 public static function dump_as_string($var, $depth = 10, $highlight = false)
 {
     self::$dump_output = '';
     self::$dump_objects = array();
     self::$dump_depth = $depth;
     self::dump_internal($var, 0);
     if ($highlight) {
         $result = highlight_string("<?php\n" . self::$dump_output, true);
         self::$dump_output = preg_replace('/&lt;\\?php<br \\/>/', '', $result, 1);
     }
     return self::$dump_output;
 }