private function varIsArray($var)
{
$var_ser = serialize($var);
array_push($this->arrHistory, $var_ser);
$this->makeTableHeader("array", "array");
if (is_array($var)) {
foreach ($var as $key => $value) {
$this->makeTDHeader("array", $key);
//check for recursion
if (is_array($value)) {
$var_ser = serialize($value);
if (in_array($var_ser, $this->arrHistory, true)) {
$value = "*RECURSION*";
}
}
if (in_array(gettype($value), $this->arrType)) {
$this->checkType($value);
} else {
$value = trim($value) == "" ? "[empty string]" : $value;
echo $value;
}
echo $this->closeTDRow();
}
} else {
echo "<tr><td>" . $this->error("array") . $this->closeTDRow();
}
array_pop($this->arrHistory);
echo "</table>";
}