我正在尝试学习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
答案 0 :(得分:3)
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>";
}