reference/tokenizer/functions/token-name.xml
cbac1ecf71d754707d69bdc344c4031c157eaa54
...
...
@@ -9,11 +9,11 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>string</type><methodname>token_name</methodname>
12
-
<methodparam><type>int</type><parameter>token</parameter></methodparam>
12
+
<methodparam><type>int</type><parameter>id</parameter></methodparam>
13
13
</methodsynopsis>
14
14
<para>
15
15
<function>token_name</function> gets the symbolic name for a PHP
16
-
<parameter>token</parameter> value.
16
+
<parameter>id</parameter> value.
17
17
</para>
18
18
</refsect1>
19
19
<refsect1 role="parameters">
...
...
@@ -21,7 +21,7 @@
21
21
<para>
22
22
<variablelist>
23
23
<varlistentry>
24
-
<term><parameter>token</parameter></term>
24
+
<term><parameter>id</parameter></term>
25
25
<listitem>
26
26
<para>
27
27
The token value.
...
...
@@ -34,8 +34,7 @@
34
34
<refsect1 role="returnvalues">
35
35
&reftitle.returnvalues;
36
36
<para>
37
-
The symbolic name of the given <parameter>token</parameter>. The returned
38
-
name returned matches the name of the matching token constant.
37
+
The symbolic name of the given <parameter>id</parameter>.
39
38
</para>
40
39
</refsect1>
41
40
<refsect1 role="examples">
...
...
@@ -46,8 +45,8 @@
46
45
<programlisting role="php">
47
46
<![CDATA[
48
47
<?php
49
-
// 260 is the token value for the T_REQUIRE token
50
-
echo token_name(260); // -> "T_REQUIRE"
48
+
// 260 is the token value for the T_EVAL token
49
+
echo token_name(260); // -> "T_EVAL"
51
50

52
51
// a token constant maps to its own name
53
52
echo token_name(T_FUNCTION); // -> "T_FUNCTION"
...
...
@@ -57,16 +56,15 @@ echo token_name(T_FUNCTION); // -> "T_FUNCTION"
57
56
</example>
58
57
</para>
59
58
</refsect1>
59
+

60
60
<refsect1 role="seealso">
61
61
&reftitle.seealso;
62
-
<para>
63
-
<simplelist>
64
-
<member><link linkend="tokens">List of Parser Tokens</link></member>
65
-
</simplelist>
66
-
</para>
62
+
<simplelist>
63
+
<member><link linkend="tokens">List of Parser Tokens</link></member>
64
+
<member><function>PhpToken::getTokenName</function></member>
65
+
</simplelist>
67
66
</refsect1>
68
67
</refentry>
69
-

70
68
<!-- Keep this comment at the end of the file
71
69
Local variables:
72
70
mode: sgml
73
71