token_get_all now returns line numbers. V5.2.2

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@235287 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2007-05-09 13:20:27 +00:00
parent 07631eab81
commit f2aee7fa4b

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<refentry id="function.token-get-all">
<refnamediv>
<refname>token_get_all</refname>
@ -42,8 +42,8 @@
An array of token identifiers. Each individual token identifier is either
a single character (i.e.: <literal>;</literal>, <literal>.</literal>,
<literal>&gt;</literal>, <literal>!</literal>, etc...),
or a two element array containing the token index in element 0, and the string
content of the original token in element 1.
or a three element array containing the token index in element 0, the string
content of the original token in element 1 and the line number in element 2.
</para>
</refsect1>
<refsect1 role="examples">
@ -71,6 +71,28 @@ $tokens = token_get_all('/* comment */'); // => array(array(T_INLINE_HTML, '/* c
</example>
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>5.2.2</entry>
<entry>Line numbers are returned in element 2
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file