From f2aee7fa4b0c402ac3b0480b56507a80081beadd Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Wed, 9 May 2007 13:20:27 +0000 Subject: [PATCH] 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 --- .../tokenizer/functions/token-get-all.xml | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/reference/tokenizer/functions/token-get-all.xml b/reference/tokenizer/functions/token-get-all.xml index c4c738539d..5fdbbedb68 100644 --- a/reference/tokenizer/functions/token-get-all.xml +++ b/reference/tokenizer/functions/token-get-all.xml @@ -1,5 +1,5 @@ - + token_get_all @@ -42,8 +42,8 @@ An array of token identifiers. Each individual token identifier is either a single character (i.e.: ;, ., >, !, 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. @@ -71,6 +71,28 @@ $tokens = token_get_all('/* comment */'); // => array(array(T_INLINE_HTML, '/* c + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.2.2 + Line numbers are returned in element 2 + + + + + + +