I was wondering if there’s any way of inserting a PHP variable in HTML without having to use echo. In ASP, you can use <%=variable%> but in PHP uou have always to use echo.
In phpBB source code I see that {VARIABLE} is used to do this but I don’t know how do they achieve it. I am sure it’s not related to PHP configuration. Do you know some references or information related to this? Thanks!
I was wondering if there’s any way of inserting a PHP variable in HTML
Share
If you have shorttags enabled* you can use the following syntax to output something:
* The manual states short_open_tags is only required before php 5.4, this syntax will always work 5.4+.