How to make an included php file a variable
<p>I would like to make a php file i have a part of a variable i'm building.</p>

<p>ie</p>

<pre><code>$print = 'something';
$print .=  include('register_form.php');

print $print;
</code></pre>

<p>However this doesn't work. register_form.php will be not be included in the $print var, and will be echo'd out before the start of the print out.</p>

<p>Is there a way to achieve this?</p>

<p>I know I could go into register_form.php and make it all a function like register_form() and return its output, however, due to the way I've structured this (and i'm a bit of a newb) this would create more headaches then if I could merely do the above attempt.</p>

<p>Thanks for any pointers!</p>
