Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.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
为什么phpsh不显示关于变量的结构化信息?_Php_Shell_Introspection_Phpsh - Fatal编程技术网

为什么phpsh不显示关于变量的结构化信息?

为什么phpsh不显示关于变量的结构化信息?,php,shell,introspection,phpsh,Php,Shell,Introspection,Phpsh,我刚刚安装了phpsh外壳,如下所述: 通常,shell应该显示返回变量的内省,如下所示: php> = get_posts(array('posts_per_page'=>1)) array( 0 => <object #288 of type stdClass> { ID => 1, ... 关于如何使shell内省在默认情况下返回变量,有什么想法吗?是不是php>=get_posts和php>get_posts(缺少=)之间的细微差别是故

我刚刚安装了phpsh外壳,如下所述:

通常,shell应该显示返回变量的内省,如下所示:

php> = get_posts(array('posts_per_page'=>1))
array(
   0 => <object #288 of type stdClass> {
    ID => 1,
...

关于如何使shell内省在默认情况下返回变量,有什么想法吗?

是不是
php>=get_posts
php>get_posts
(缺少
=
)之间的细微差别是故意的?谢谢。我错过了那篇缺失的
=
。这就是原因。
php> get_posts( array('posts_per_page'=>1 ))

php> var_dump(get_posts( array('posts_per_page'=>1 )))
array(1) {
  [0]=>