YNZi

The Smallest PHP Templating Engine

A templating engine comes really handy when programming in PHP. Here's the smallest one you can use -

function tmpl($tmpl_name, $data) {
    ob_start();
    include ("${tmpl_name}.php");
    return ob_get_clean();
}

That's it.

 

98%=25%, 99%=50%, 100%=100%

98% done is 25% of the work,
99% done is 50% of the work,
100% done is 100% of the work.

It takes lot more to the do the last 2% and to say a project is “COMPLETE. DONE.” from “Almost Complete. Almost Done.”