title: change the selected option in html select based on variable value
body: <p>My code is like </p>
  
  <pre><code>    echo("&lt;td&gt;$row[Status]&lt;/td&gt;");
      echo("&lt;td&gt;
      &lt;select name=\"choose\" id=\"Choose\" onChange=\"\"&gt;
      &lt;option value=\"Unverified\"&gt;Unverified&lt;/option&gt;
      &lt;option value=\"Approved\"&gt;Approve&lt;/option&gt;
      &lt;option value=\"Decline\"&gt;Decline&lt;/option&gt;
      &lt;option value=\"Pending\"&gt;Pending&lt;/option&gt;                   
      &lt;/select&gt;
      &lt;/td&gt;");
  </code></pre>
  
  <p>Here is what I want to do 
  if ($row[Status] == Approved) then the code should change like this </p>
  
  <pre><code>.
  .
  &lt;option value=\"Approved\" Selected&gt;Approve&lt;/option&gt;
  .
  .
  </code></pre>
  
  <p>The simplest way would be to create a simple if condition for all but there must be smarter way to do it. Any ideas? </p>
  
  <p>I would prefer to keep it in php itself. And if you are going use a bit more complicated symbols like a => b  Please explain why it is being used and what it does.</p>