Home >Backend Development >PHP Tutorial >php-大家讨论一下debug_zval_dump()如何

php-大家讨论一下debug_zval_dump()如何

WBOY
WBOYOriginal
2016-06-02 11:29:09886browse

php调试

此函数的支持环境为:(PHP 4 >= 4.2.0, PHP 5, PHP 7)
两个不同的demo得到的结果不同,大家是怎么理解这个函数的?又都是怎么使用的呢?

<code> <?php $var1 = 'Hello World';$var2 = '';$var2 =& $var1;debug_zval_dump($var1); // not passed by reference, this time?></code>
<code> <?php $var1 = 'Hello World';debug_zval_dump($var1);?></code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn