title: Retrieve dynamically generate check box array values in controller
body: <p>in my html i can able to add more fields using jquery and the field am generating is check box array. i need to retrieve this in my controller.</p>
  
  <p>so far i have tried </p>
  
  <pre><code> &lt;input type="checkbox" value="1" name="washing[]"  id="washing[]"&gt;
   &lt;input type="checkbox" value="1" name="dryclean[]" id="dryclean[]"&gt;
  </code></pre>
  
  <p>In controller</p>
  
  <pre><code> $clothtypeid = $request-&gt;input('clothtypeid');
   $washing = $request-&gt;input('washing');
   $pressing = $request-&gt;input('pressing');
  
   for($i=0;$i&lt;count($clothtypeid);$i++){
     //in here how to test if the checkbox is ticked then value=1 else 0 ??
   }
  
  
  
  I expect if the checkbox is ticked then i have to make 1 else 0
  Thanks in Advance
  </code></pre>