How to save expression in variable in PHP?
<p>This might be bad question but I want to know if is it possible. </p>

<pre><code>//here is my expression
$data = ($edit == 'allow') ? getData($id) : null;
</code></pre>

<p>Above expression interprets and saves in <code>$data</code> variable, is it possible to save it as a string and execute whenever need?</p>
