Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/239.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 获取变量的内容_Php - Fatal编程技术网

Php 获取变量的内容

Php 获取变量的内容,php,Php,我试图学习PHP,但无意中发现数组中存在坏键的问题 我有这个功能 public function pdf_read_root() { $this->root = $this->pdf_resolve_object( $this->c, $this->pdf_find_root()); } 但是$this->root返回了错误的值,如何获取单个内容,$this->c&$this->pdf\u find\u root查看pdf\u resolve\u对象中使

我试图学习PHP,但无意中发现数组中存在坏键的问题 我有这个功能

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

}
但是
$this->root
返回了错误的值,如何获取单个内容,
$this->c&$this->pdf\u find\u root
查看
pdf\u resolve\u对象中使用了什么
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>";

}
{ $this->root=$this->pdf\u resolve\u对象($this->c,$this->pdf\u find\u root()); 回声“; echo“
成员变量c的值为:”.print\r($this->c,true); echo“
方法pdf\u find\u root()的值为:”.print\r($this->pdf\u find\u root(),true); echo“
成员变量root的值为:”.print\r($this->root,true); 回声“; }
您能定义“错误的值”吗?我想要的键是错误的,因此,当我执行这样的检查$this->root[1][1]['/Pages']时,无法成功地围绕任何变量调用print\u r(),以查看其中的内容,无论是对象还是数组。它可以帮助你调试你可能认为是错误的东西。在这段代码中有什么地方出错了<代码>$this->pdf_resolve_对象($this->c$this->pdf_find_root())+1到正确答案!“我想要的钥匙是错的”仍然没有给出更多的信息。它们是什么?您希望它们是什么?这看起来像是调试的建议,而不是答案。