Dominik Marczuk

Programming is my hobby and profession. I make a living by writing web applications in PHP and JavaScript. When I feel creative, I come up with new projects and initiatives. Code::Umbra is one of them.

Let's write a PHP macro parser

Posted by Dominik Marczuk on November 26th, 2012, with 3 comments.

Category: Tutorials
Programming language: PHP
Tags: parsing, regex, macro

If you've ever managed a website using a CMS, be it Drupal, Wordpress or other, you probably noticed how certain elements get inserted into the page content using some barely readable code in brackets or curly braces, that gets replaced with actual content dynamically. This article will show you how to harness this.