title: Retrieving data from checkbox - php
body: <p>I have a <code>Choice</code> list contain 4 types of Articles. The user should take one choice. Now the list become contain 45 Articles and I changed the <code>choice list</code> by a <code>checkBox list</code>for multiple choices.</p>
  
  <p>This following the old <code>setter</code> function:</p>
  
  <pre><code> public function setNature($nature) {
          $this-&gt;_nature = $nature;
          if ($nature === 'Production') { $this-&gt;_nature='Production';   }
          elseif ($nature === 'A'){ $this-&gt;_nature='A';}
          elseif ($nature === 'B') {$this-&gt;_nature='B';}
          else $this-&gt;_nature ='all';
      }
  </code></pre>
  
  <p>How I can change this setter function to recovre the data without write all the 45 types of articles ? </p>