title: how to put if statement inside a variable
body: <p>I'm trying to put a if statament in a variabile to manipulate. I don't know how to execute and to store the answer in a variable and then to echo the variable.I try with quote around but not work and this:</p>
  
  <pre><code>    $conditie_variabila = {
      if(isset($var1))
      {
      echo "variabila este setata";
      }
  };
  
  
  echo $conditie_variabila;
  </code></pre>
  
  <p>Please help!</p>