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 + + + + + + +