Home Menu

debug_zval_dump

Dumps a string representation of an internal zend value to output

Syntax

debug_zval_dump ( mixed $variable [, mixed $... ] ) : void

Parameters

variable

The variable being evaluated.

Return

No value is returned.

Examples

1

<?

$variable = "Hello";

debug_zval_dump($variable);

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

2

<?

$variable1 = "Hello";
$variable2 = "World!";

debug_zval_dump($variable1, $variable2);

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

3

<?

$variable1 = "Hello";
$variable2 = $variable1;

debug_zval_dump($variable1, $variable2);

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

4

<?

$variable1 = "Hello";
$variable2 = &$variable1;

debug_zval_dump($variable1, $variable2);

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

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms