Tag Archive > php tokenizer

Emulate short tags in PHP when short_open_tag = off

Yesterday I was playing with PHP 5.3. It seems that the default configuration comes with short_open_tag disabled
The short open tags is what allows to write code like this <?=”algo”?> instead of having to write <?php echo “algo”?>. Something REALLY INTERESTING, it makes PHP code really clear when looking at templates from my [...]

Continue reading

, , ,

Superfast tokenizer in PHP

I am currently working on a PHP library/framework (I think it looks more like a library than a framework, and I think it’s better this way).
The thing is that for some of the components I needed to parse some data (look at parser definition), and for that task I needed a PHP tokenizer (or PHP [...]

Continue reading

, , , , , , ,