31 switch (gettype(
$var)) {
33 $results =
'<b>Array (' . count(
$var) .
')</b>';
34 foreach (
$var as $curr_key => $curr_val) {
35 $results .=
'<br>' . str_repeat(
' ', $depth * 2)
36 .
'<b>' . strtr($curr_key, $_replace) .
'</b> => '
42 $object_vars = get_object_vars(
$var);
43 $results =
'<b>' . get_class(
$var) .
' Object (' . count($object_vars) .
')</b>';
44 foreach ($object_vars as $curr_key => $curr_val) {
45 $results .=
'<br>' . str_repeat(
' ', $depth * 2)
46 .
'<b> ->' . strtr($curr_key, $_replace) .
'</b> = '
56 } elseif (
false ===
$var) {
58 } elseif (null ===
$var) {
61 $results = htmlspecialchars((
string)
$var);
63 $results =
'<i>' . $results .
'</i>';
67 $results = htmlspecialchars((
string)
$var);
70 $results = strtr($var, $_replace);
71 if (strlen($var) > $length ) {
72 $results = substr($var, 0, $length - 3) .
'...';
74 $results = htmlspecialchars(
'"' . $results .
'"');
78 $results = strtr((
string) $var, $_replace);
79 if (strlen($results) > $length ) {
80 $results = substr($results, 0, $length - 3) .
'...';
82 $results = htmlspecialchars($results);