我正在使用Ubuntu和PHP 7.
PHP 7.0.5-3+donate.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans
Run Code Online (Sandbox Code Playgroud)
当我通过使用var_dump显示一些变量来调试PHP脚本时:
<?php
var_dump('tmp string');
var_dump(true);
Run Code Online (Sandbox Code Playgroud)
以下是其输出:
/var/www/example.com/test.php:3:string 'tmp string' (length=10)
/var/www/example.com/test.php:4:boolean true
Run Code Online (Sandbox Code Playgroud)
为什么它总是以前用文件路径输出?
我希望它输出如下:
string 'tmp string' (length=10)
boolean true
Run Code Online (Sandbox Code Playgroud)