title: Adding conditions dynamically in php if condtion
body: <p>I am trying to add a condition dynamically in the if condition . But it is not working . Please help me to fix the issue.</p>
  
  <p>I am trying a code like this </p>
  
  <pre><code> $day_difference = "some integer value";
  
    if(sheduled_time == 'evening'){
          $condition = '&gt;';
      }else{
        $condition = '==';
      }
  </code></pre>
  
  <p>then </p>
  
  <pre><code>if($day_difference.$condition.  0){ 
    echo "something";       
   }else{
     echo "h";
   }
  </code></pre>