title: How to apply if condition when it's parameter is coming into a variable?
body: <p>I have assigned a condition into a <strong>variable</strong>. Then I tried to put that variable as a parameter of a <strong>if</strong> statement. But the code is not working. Please check my code: </p>
  
  <pre><code>$a = 8;
  $final_str = '$a == 10';
  
  if($final_str) {
      echo 'Output 1';
  } else {
      echo 'Output 2';
  }
  </code></pre>
  
  <p>The desired output should be <strong>Output 2</strong>. But it is not working. I always see <strong>Output 1</strong>. Please help me in this case. </p>
  
  <p>Thanks in advance!</p>