title: If inside echo in PHP
body: <p>This is my php code:</p>
  
  <pre><code>echo "&lt;td&gt;&lt;select name='Sucursal'  &gt; 
  &lt;option value=''&gt;Seleccione sucursal&lt;/option&gt;
  &lt;option value='L1'&gt;L1&lt;/option&gt;  
  &lt;option value='L5'&gt;L5&lt;/option&gt;
  &lt;option value='L6'&gt;L6&lt;/option&gt;
  &lt;option value='PN'&gt;PN&lt;/option&gt;
  &lt;option value='MA'&gt;MA&lt;/option&gt;
  &lt;/select&gt;&lt;/td&gt;";
  </code></pre>
  
  <p>I'm "echoing" a select inside php, but I want to put this code inside each option value:</p>
  
  <pre><code>&lt;option value="Male" &lt;?php if($Gender == "Male") echo "selected"; ?&gt;&gt;Male&lt;/option&gt;
  </code></pre>
  
  <p>My problem is I don't know how to put it inside the echo, If someone could help me, I would appreciate it.</p>