English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Example of PHP debug_zval_dump() Function

PHP Available Functions

debug_zval_dump The function is used to view the reference count and type information of a variable in the zend engine.

Version Requirement: PHP 4 >= 4.2.0, PHP 5, PHP 7

Syntax

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

Parameter Description:

  • $variable: The variable to be viewed.

Return Value

No Return Value

Online Example

<?php
$a  =  'w3codebox';
debug_zval_dump($a);
 
// Multiple Parameters
$b  =  'google';
debug_zval_dump($a,  $b);
?>

The execution result is as follows:

string(6)  "w3codebox"  refcount(1)
string(6)  "w3codebox"  refcount(1)
string(6)  "google"  refcount(1)

PHP Available Functions