6 * Generate a human readable represenation of a variable
8 * @param bool $export whether to var_export the $arg
11 function typeof($arg, $export = false) {
12 $type = (is_object($arg)
13 ?
"instance of ".get_class($arg)
17 $type .= ": ".var_export($arg, true);