(PHP) Getting content from a file that uses variables
<p>Let's consider that mytext.txt contains:</p>

<blockquote>
  <p>Hello my name is $name.</p>
</blockquote>

<p>Then...</p>

<pre><code>&lt;?php
$name = "Johnny";
$output = file_get_contents("mytext.txt");
echo $output;
?&gt;
</code></pre>

<p>I did this expecting $name to be replaced with the variable's value.</p>

<p>ps: I can't use include() because I need it to be stored in a variable.</p>
