title: How to store multiple values of HTML dropdownlist into array and seperate them by comma using PHP?
body: <p>I want to store 4 values of this dropdownlist into an array using PHP, and I also want to separate them by comma and save them into different single variable.</p>
  
  <pre><code>&lt;td&gt;
      &lt;select name="Ty" size=4 multiple&gt;
          &lt;option value="Action"&gt;Action&lt;/option&gt;
          &lt;option value="Adventure"&gt;Adventure&lt;/option&gt;
          &lt;option value="Animation"&gt;Animation&lt;/option&gt;
          &lt;option value="Bollywood"&gt;Bollywood&lt;/option&gt;
          &lt;option value="Marathi"&gt;Marathi&lt;/option&gt;
          &lt;option value="Comedy"&gt;Comedy&lt;/option&gt;
          &lt;option value="crime"&gt;Crime&lt;/option&gt;
          &lt;option value="Documentary"&gt;Documentary&lt;/option&gt;
          &lt;option value="Drama"&gt;Drama&lt;/option&gt;
          &lt;option value="Family"&gt;Family&lt;/option&gt;
          &lt;option value="Horror"&gt;Horror&lt;/option&gt;
          &lt;option value="Romance"&gt;Romance&lt;/option&gt;
          &lt;option value="Sci"&gt;Sci-Fi&lt;/option&gt;
      &lt;/select&gt;
  &lt;/td&gt; 
  </code></pre>