include without output?
Is there a way to do an
For isntance:
Thanks.
include(...) or require(...), but instead of printing the output, store it in a variable?For isntance:
Say I've got a php file named include.php:
<p>Hello! My name is <?=$name?>.</p>
And another file, including it:
<?php
$name = "Billy";
require("include.php");
?>
That will print the html:
<p>Hello! My name is Billy.</p>
But what if I don't want that string printed immediately, but stored in a variable for later use? Is that possible?
Thanks.
