PHP debug_zval_dump() 函数

PHP 教程 · 2019-01-31 14:26:37

debug_zval_dump 函数用于查看一个变量在zend引擎中的引用计数、类型信息。

版本要求:PHP 4 >= 4.2.0, PHP 5, PHP 7

语法

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

参数说明:

  • $variable:要查看的变量。

返回值

没有返回值。

实例

实例

<?php $a = 'codercto'; debug_zval_dump($a); // 多个参数 $b = 'google'; debug_zval_dump($a, $b); ?>

执行结果如下所示:

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

点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Head First WordPress

Head First WordPress

Siarto Jeff / O'Reilly Media / 2010-02-15 / USD 34.99

Whether you're promoting your business or writing about your travel adventures, "Head First WordPress" will teach you not only how to make your blog look unique and attention-grabbing, but also how to......一起来看看 《Head First WordPress》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试