News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
C7Y:
Practical Uses for the PHP Tokenizer
August 20, 2008 @ 09:31:55

A new tutorial has been posted to php|architects C7Y community site looking at some practical uses of the PHP tokenizer to work with your source.

In this article we take a look at the PHP tokenizer and its potential at analyzing and processing PHP source code. We will build several working examples, which you can start using and extending for your own purposes.

The author, Stan Vassilev, explains what the tokenizer is for, how it parses the code (via a lexer) and how to get at the tokens that are created. He uses the token_get_all and token_name functions to get the information and creates a wrapper class around them to strip whitespace and comments.

0 comments voice your opinion now!
tokenizer practical use tutorial strip whitespace filter class



Similar Posts

Richard Heyes' Blog: SMTP class rehash

CSS Tricks: Create a Slick iPhone/Mobile Interface from any RSS Feed

PHPBuilder.com: Beginning Ajax with PHP: From Novice to Professional

The Shadow Fox Network: Creating A Scaffold-like Class in PHP or An Automatic CMS For a Table

DevShed: Building a Complete Web Searching Class with Yahoo Web Services and PHP 5


Community Events









Don't see your event here?
Let us know!


example database package ajax framework code release mysql zend cakephp PEAR security zendframework application releases PHP5 developer conference job book

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework