Eval

When is eval evil in php?

<p>In all the years I have been developing in php, I&rsquo;ve always heard that using <span class="inlinecode">eval()</span> is evil.</p> <p>Considering the following code, wouldn&rsquo;t it make sense to use the second (and more elegant) option? I