debug_zval_dump

Dumps a string representation of an internal zend value to output

Syntax

debug_zval_dump(mixed $value, mixed ...$values): void

Parameters

value

The value to dump.

values

More values to dump.

Return

No value is returned.

Examples

1

<?

$value = "Hello";

debug_zval_dump($value);

?>
string(5) "Hello" refcount(3)

2

<?

$value = "Hello";
$values = "World!";

debug_zval_dump($value, $values);

?>
string(5) "Hello" refcount(3)
string(6) "World!" refcount(3)

3

<?

$value = "Hello";
$values = $value;

debug_zval_dump($value, $values);

?>
string(5) "Hello" refcount(5)
string(5) "Hello" refcount(5)

4

<?

$value = "Hello";
$values = &$value;

debug_zval_dump($value, $values);

?>
string(5) "Hello" refcount(4)
string(5) "Hello" refcount(4)

PHP

Home Menu