title: How to convert a string into condition in the IF statement
body: <p>Let say I have a string stored in the $condition variable:</p>
  
  <pre><code>$condition = '2 == 2'; // returns TRUE
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$condition = 'my_own_function()'; // which also returns TRUE
  </code></pre>
  
  <p>How can I convert them into a condition in an IF statement? Say:</p>
  
  <pre><code>if (some_magic_converter_function($condition)){
      // execute something
  }
  </code></pre>
  
  <p>it will be the same as if I execute</p>
  
  <pre><code>if (my_own_function()){
      // execute something
  }
  </code></pre>
  
  <p>Is there any other ways I can <strong>safely</strong> evaluate the string into a condition of an IF statement? How?</p>