Reputation: 1747
I saw some html that displays the results of a PHP code just by adding {#name}
<html>
<body>
{#name}
</body>
</html>
How can i do that?
I have been looking around and I cant find anything that shows me how to do this. Thanks!
Upvotes: 1
Views: 83
Reputation: 137398
What you saw was probably some sort of template system. If that is the case, the PHP script reads the template, and then replaces all instances of {#name}
with the contents of the variable $name
.
An example of one such template system would be Smarty.
Upvotes: 4