src/Utils.php
public function debugObject($obj, $indent = 0)
    {
        if (is_array($obj)) {
            $return = '';
            foreach ($obj as $k => $v) {
                $return .= str_repeat('&nbsp;', $indent);
                if (is_array($v)) {
                    $return .= $k . "->Array\n";
                    $return .= $this->debugObject($v, $indent + 1);
                } else {
                    $return .= $k . "->$v\n";
                }
            }
            return $return;
        }
    }
public function debugObject($obj, $indent = 0)
    {
        if (is_array($obj)) {
            $return = '';
            foreach ($obj as $k => $v) {
                $return .= str_repeat('&nbsp;', $indent);
                if (is_array($v)) {
                    $return .= $k . "->Array\n";
                    $return .= $this->debugObject($v, $indent + 1);
                } else {
                    $return .= $k . "->$v\n";
                }
            }
            return $return;
        }
    }
public function debugObject ( $ obj , $ indent = 0 ) { if ( is_array ( $ obj ) ) { $ return = '' ; foreach ( $ obj as $ k => $ v ) { $ return .= str_repeat ( '&nbsp;' , $ indent ) ; if ( is_array ( $ v ) ) { $ return .= $ k . "->Array\n" ; $ return .= $ this -> debugObject ( $ v , $ indent + 1 ) ; } else { $ return .= $ k . "->$v\n" ; } } return $ return ; } }
Return object or array as formatted string
@param $obj
@param int $indent
@return string
Return object or array as formatted string