debug_zval_dump
Description
The debug_zval_dump of Variable Handling for PHP 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" interned
2
<? $value = "Hello"; $values = "World!"; debug_zval_dump($value, $values); ?>
string(5) "Hello" interned string(6) "World!" interned
3
<? $value = "Hello"; $values = $value; debug_zval_dump($value, $values); ?>
string(5) "Hello" interned string(5) "Hello" interned
4
<? $value = "Hello"; $values = &$value; debug_zval_dump($value, $values); ?>
string(5) "Hello" interned string(5) "Hello" interned
Links
Variable Handling
- boolval
- doubleval
- empty
- floatval
- get_debug_type
- get_defined_vars
- get_resource_id
- get_resource_type
- gettype
- intval
- is_array
- is_bool
- is_callable
- is_countable
- is_double
- is_float
- is_int
- is_integer
- is_iterable
- is_long
- is_null
- is_numeric
- is_object
- is_real
- is_resource
- is_scalar
- is_string
- isset
- print_r
- serialize
- settype
- strval
- unserialize
- unset
- var_dump
- var_export