debug_zval_dump

(PHP 4 >= 4.2.0, PHP 5)

debug_zval_dump -- Dumps a string representation of an internal zend value to output

说明

void debug_zval_dump ( mixed variable )

Dumps a string representation of an internal zend value to output.

参数

variable

The variable being evaluated.

返回值

无返回值。

例子 1. debug_zval_dump() example

<?php
$var1
= 'Hello World';
$var2 = '';

$var2 =& $var1;

debug_zval_dump($var1);
?>

上例将输出:

string(11) "Hello World" refcount(1)

参见

var_dump()
debug_backtrace()
References Explained