Tokenizer Functions Tokenizer
&reftitle.intro; The tokenizer functions provide an interface to the PHP tokenizer embedded in the Zend Engine. Using these functions you may write your own PHP source analyzing or modification tools without having to deal with the language specification at the lexical level. See also the appendix about tokens.
&reftitle.required; &no.requirement;
&reference.tokenizer.configure; &reference.tokenizer.constants;
&reftitle.examples; Here is a simple example PHP scripts using the tokenizer that will read in a PHP file, strip all comments from the source and print the pure code only. Strip comments with the tokenizer output "as is" echo $text; break; } } } ?> ]]>
&reference.tokenizer.functions;