php-doc-en/reference/runkit7/functions/runkit7-zval-inspect.xml
2021-07-02 12:15:34 +03:00

117 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-zval-inspect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>runkit7_zval_inspect</refname>
<refpurpose>Returns information about the passed in value with data types, reference counts, etc</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>runkit7_zval_inspect</methodname>
<methodparam><type>string</type><parameter>value</parameter></methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>value</parameter></term>
<listitem>
<para>
The value to return the representation of
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The array returned by this function contains the following elements:
<simplelist>
<member><literal>address</literal></member>
<member><literal>refcount</literal> (optional)</member>
<member><literal>is_ref</literal> (optional)</member>
<member><literal>type</literal></member>
</simplelist>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_zval_inspect</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$var = new DateTime();
var_dump(runkit7_zval_inspect($var));
$var = 1;
var_dump(runkit7_zval_inspect($var));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(4) {
["address"]=>
string(14) "0x7f45ab21b1e0"
["refcount"]=>
int(2)
["is_ref"]=>
bool(false)
["type"]=>
int(8)
}
array(2) {
["address"]=>
string(14) "0x7f45ab21b1e0"
["type"]=>
int(4)
}
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="language.references">References Explained</link></member>
<member><link xlink:href="&url.derick.references;">References Explained (by Derick Rethans)</link></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->