获取变量的内容


getting content of variables

我正在尝试学习PHP,却偶然发现数组中存在坏键的问题我有这个功能

public function pdf_read_root()
{   
    $this->root = $this->pdf_resolve_object( $this->c, $this->pdf_find_root());
}

但是$this->root返回了错误的值,我如何获取单个内容,$this->c & $this->pdf_find_root查看pdf_resolve_object 中使用了什么

public function pdf_read_root()
{   
    $this->root = $this->pdf_resolve_object( $this->c, $this->pdf_find_root());
    echo "<pre>";
    echo "<br> Value of member variable c is: ". print_r($this->c, true);
    echo "<br> Value of method pdf_find_root() is: ". print_r($this->pdf_find_root(),true);
    echo "<br> Value of member variable root is: ". print_r($this->root, true);
    echo "</pre>";
}