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

查看所有标签

Fluent Python

Fluent Python

Luciano Ramalho / O'Reilly Media / 2015-8-20 / USD 39.99

Learn how to write idiomatic, effective Python code by leveraging its best features. Python's simplicity quickly lets you become productive with it, but this often means you aren’t using everything th......一起来看看 《Fluent Python》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

html转js在线工具
html转js在线工具

html转js在线工具