Use string value as if/else expression
<p>This is probably <em>the</em> dumbest question out there and the answer is probably NO, but...</p>

<p>Is it possible to use the value of a string in the expression of an if statement? For example, say I pass</p>

<pre><code>'if strcasecmp("hello", "Hello") == 0'
</code></pre>

<p>to a function and call it $string, could I then use that value as the conditional evaluation of an if statement?</p>

<pre><code>if (the value of $string) {}
</code></pre>

<p>I know eval() will execute a string as if it was PHP code, but actually executes it and returns null/false, rather than just allowing the PHP surrounding the string to deal with the contents of string.  I also know you can use variable variables by using ${$varname} that will tell php to use the value of $varname as the name of a a variable.</p>

<p>So I guess what I'm looking for is kind of like 'variable code' instead of 'variable variables'.</p>
