title: PHP sending variables to file_get_contents()
body: <p>I want to be able to send a few variables to a file through <code>file_get_contents()</code>.</p>
  
  <p>This is firstfile.php:</p>
  
  <pre><code>&lt;?php
  $myvar = 'This is a variable';
  // need to send $myvar into secondfile.php
  $mystr = file_get_contents('secondfile.php');
  ?&gt;
  </code></pre>
  
  <p>This is secondfile.php:</p>
  
  <pre><code>The value of myvar is: &lt;?php echo $myvar; ?&gt;
  </code></pre>
  
  <p>I want the variable <code>$mystr</code> to equal <code>'The value of myvar is: This is a variable'</code></p>
  
  <p>Is there any other function that will let you do this in PHP?</p>