I am looking for a way to combine the functionality of "include" and
"here documents" so that an included html file containing $variables
is expanded and handled (normally printed to stdout).
It would be something like:
print <<<HERE
include file.html;
HERE;
except that, of course, this won't work. The text "include
file.html;" will be printed and no file will be included. So it needs
to be some other syntax. Does php support this?
"here documents" so that an included html file containing $variables
is expanded and handled (normally printed to stdout).
It would be something like:
print <<<HERE
include file.html;
HERE;
except that, of course, this won't work. The text "include
file.html;" will be printed and no file will be included. So it needs
to be some other syntax. Does php support this?
Comment