PHP - eval() problem
<p>I have two files like below</p>

<p>SomeClass.php</p>

<pre><code>class SomeClass {
  public function display() {
    $content = file_get_contents("helloworld.php");
    eval($content);
  }

  public function helloWorld() {
    echo "hello World!";
  }

}
</code></pre>

<p>helloworld.php</p>

<pre><code>&lt;?php
  $this-&gt;helloWorld() ;
?&gt;
&lt;p&gt;It's html expression&lt;/p&gt;
</code></pre>

<p>As you can see, I tried to execute helloworld.php in the display function.
Of course, It occur an error because the html tag is placed in the display function.</p>

<p>Is there any good way to execute helloworld.php text in the display function preserving helloworld.php code?</p>
