mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
use of example tag
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114949 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
cc468a2519
commit
67138c1d4a
2 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.token-get-all">
|
||||
<refnamediv>
|
||||
<refname>token_get_all</refname>
|
||||
|
@ -18,7 +18,8 @@
|
|||
either a one character string or itself an array containing a token id and the
|
||||
string representation of that token in the source code.
|
||||
</para>
|
||||
<informalexample>
|
||||
<example>
|
||||
<title><function>token_get_all</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
@ -28,7 +29,7 @@
|
|||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</example>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<refentry id="function.token-name">
|
||||
<refnamediv>
|
||||
<refname>token_name</refname>
|
||||
|
@ -12,12 +12,13 @@
|
|||
<methodparam><type>int</type><parameter>token</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
This function will returen the symbolic name for a PHP
|
||||
<function>token_name</function> returns the symbolic name for a PHP
|
||||
<parameter>token</parameter> value. The symbolic name
|
||||
returned matches the name of the matching token constant.
|
||||
</para>
|
||||
<informalexample>
|
||||
<example>
|
||||
<programlisting role="php">
|
||||
<title><function>token_name</function> example</title>
|
||||
<![CDATA[
|
||||
<?php
|
||||
// 260 is the token value for the T_REQUIRE token
|
||||
|
@ -28,7 +29,7 @@
|
|||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</example>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue