public function dump()
 {
     return "Option('{$this->short}', " . dump_scalar($this->long) . ", " . dump_scalar($this->argcount) . ", " . dump_scalar($this->value) . ")";
 }
Beispiel #2
0
/**
 * Works in conjunction with the debug function to pretty-print a variable of arbitrary type.
 *
 * @return string
 * @param mixed $var A reference to the variable to pretty-print
 * @param bool $b_verbose A boolean that indicates whether to print verbose output.
 * @param int $i_indent The current intendation level.
 */
function dump_arbitrary(&$var, $b_verbose = false, $i_indent = 0, $str_unique_id = '')
{
    // if the var is an array, recurse...
    if (is_array($var)) {
        dump_array($var, $b_verbose, $i_indent);
    } else {
        if (is_object($var)) {
            dump_object($var, $b_verbose, $i_indent);
        } else {
            dump_scalar($var, $b_verbose, $str_unique_id);
        }
    }
}