Inside function variables to be used in includes in PHP
<p>I have a function that includes another file like so</p>

<pre><code>// some function
function SomeFunction()
{
   $someData = 'SomeData';
   include_once('some_file.php');
}

// some_file.php
&lt;?php echo $someData; ?&gt;
</code></pre>

<p>How would I get this to work where the include file can use the variables from the calling function? I will be using some output buffering.</p>
