PHP: How to fix array_combine when one valus is empty
I have a problem with `array_combine` when one value is empty (the checkbox will be `= 0` if it's not checked:

**Error:**

<pre>
Warning: array_combine() [function.array-combine]: Both parameters should have an equal number of elements in
</pre>

**PHP:**

<pre>
<code>
$combined = array_combine($_POST['name'], $_POST['day']);

foreach($combined as $name => $value) {
     echo $name.' => '.$value;
}
</code>
</pre>

**HTML:**
   
      <p>
            <input type="text" name="name[]" value="seth" />
            <input type="checkbox" name="day[]" value="7" />
      </p>

      <p>
            <input type="text" name="name[]" value="jack" />
            <input type="checkbox" name="day[]" value="4" />
      </p>
      
      <p>
            <input type="text" name="name[]" value="david" />
            <input type="checkbox" name="day[]" value="3" />
      </p>



PHP: How to fix array_combine when one valus is empty
===

I have a problem with `array_combine` when one value is empty (the checkbox will be `= 0` if it's not checked:

**Error:**

<pre>
Warning: array_combine() [function.array-combine]: Both parameters should have an equal number of elements in
</pre>

**PHP:**

<pre>
<code>
$combined = array_combine($_POST['name'], $_POST['day']);

foreach($combined as $name => $value) {
     echo $name.' => '.$value;
}
</code>
</pre>

**HTML:**
   
      <p>
            <input type="text" name="name[]" value="seth" />
            <input type="checkbox" name="day[]" value="7" />
      </p>

      <p>
            <input type="text" name="name[]" value="jack" />
            <input type="checkbox" name="day[]" value="4" />
      </p>
      
      <p>
            <input type="text" name="name[]" value="david" />
            <input type="checkbox" name="day[]" value="3" />
      </p>


