|
|
|
|
|
by z92
4905 days ago
|
|
My guess is that is the only reason. Otherwise PHP itself is a template language. That is why you start it with <? tag. Just keep short tags on [it's off by default on new installations but ON by default on all hosting sites] and you got a better template engine than smarty. |
|
You do not want to type <?php echo htmlspecialchars($var, ENT_QUOTES) ?> every time you want to output data. (Yes, I know it could probably be written shorter but my PHP is rusty. My point still remains though, you have to remember to type it every time.)