title: Put IF condition inside a variable
body: <p>Is there any way to put conditions within a variable and then use that variable in an if statement? See the example below:</p>
  
  <pre><code>$value1 = 10;
  $value2 = 10;
  
  $value_condition = '($value1 == $value2)';
  
  if ($value_condition) {
      echo 'It works!';
  } else {
      echo 'It doesnt work.';
  }
  </code></pre>
  
  <p>I understand this may be a bizarre question. I am learning the basics of PHP. </p>