private function checkType($var)
    {
        switch (gettype($var)) {
            case "resource":
                $this->varIsResource($var);
                break;
            case "object":
                $this->varIsObject($var);
                break;
            case "array":
                $this->varIsArray($var);
                break;
            case "NULL":
                $this->varIsNULL();
                break;
            case "boolean":
                $this->varIsBoolean($var);
                break;
            default:
                $var = ($var == "") ? "[empty string]" : $var;
                echo "<table cellspacing=0><tr>\n<td>" . $var . "</td>\n</tr>\n</table>\n";
                break;
        }
    }
private function checkType($var)
    {
        switch (gettype($var)) {
            case "resource":
                $this->varIsResource($var);
                break;
            case "object":
                $this->varIsObject($var);
                break;
            case "array":
                $this->varIsArray($var);
                break;
            case "NULL":
                $this->varIsNULL();
                break;
            case "boolean":
                $this->varIsBoolean($var);
                break;
            default:
                $var = ($var == "") ? "[empty string]" : $var;
                echo "<table cellspacing=0><tr>\n<td>" . $var . "</td>\n</tr>\n</table>\n";
                break;
        }
    }
private function checkType ( $ var ) { switch ( gettype ( $ var ) ) { case "resource" : $ this -> varIsResource ( $ var ) ; break ; case "object" : $ this -> varIsObject ( $ var ) ; break ; case "array" : $ this -> varIsArray ( $ var ) ; break ; case "NULL" : $ this -> varIsNULL ( ) ; break ; case "boolean" : $ this -> varIsBoolean ( $ var ) ; break ; default : $ var = ( $ var == "" ) ? "[empty string]" : $ var ; echo "<table cellspacing=0><tr>\n<td>" . $ var . "</td>\n</tr>\n</table>\n" ; break ; } }
check variable type
check variable type