When (if ever) would you do this in PHP?
<p>I've been going through the code of a Wordpress plugin and found the following:</p>

<p><code>eval( '?&gt;' . $foo . '&lt;?php ' );</code></p>

<p>I'm curious if there is some specific situation I'm unaware of that this would be the right way to output the <code>$foo</code> variable.  Is this just a case of the plugin author being wacky or is there something I should know?  I would have just used <code>echo</code>...</p>

<p>UPDATE:</p>

<p>Thanks for all the great feedback.  I'm face palming now that I didn't think of the template scenario.  Specifically, this happens in the WP Super Cache plugin.  I guess I'll have to have a closer look to see if it's necessary.  I thought Super Cache cached the html output by Wordpress after all the PHP had already been processed...</p>
