PHP debug_zval_dump() Function
debug_zval_dumpThis function is used to view a variable's reference count and type information in the Zend engine.
Version requirements: PHP 4 >= 4.2.0, PHP 5, PHP 7
Syntax
void debug_zval_dump ( mixed $variable [, mixed $... ] )
Parameter description:
- $variable: The variable to view.
Return Value
No return value.
Example
Example
$a = 'example';
debug_zval_dump($a);
//Multiple parameters
$b = 'google';
debug_zval_dump($a, $b);
The execution result is as follows:
string(6) "example" refcount(1) string(6) "example" refcount(1) string(6) "google" refcount(1)Other Extensions
PHP Available Functions