Ok, I have a major complication.

I'm trying to serialize a 2d array using a foreach.

Here's what I have so far:

PHP Code:
<td><input type="text" name="bpc[' . ($i+1) . '][bpcname]" value="' . $bpc['bpcname'] . '" /></td>
            <
td><input type="text" name="bpc[' . ($i+1) . '][bpcnum]" value="' . $bpc['bpcnum'] . '" /></td>
            <
td><input type="text" name="bpc[' . ($i+1) . '][bpcexp]" value="' . $bpc['bpcexp'] . '" style="width: 90px;" /></td
There's the input fields.

Now for the serialization...I really can't seem to figure it out. I have tried this:
PHP Code:
foreach($_POST['bpc'] as $key => $value){
        echo 
'<pre>';
        
print_r($bpc);
        echo 
'</pre>';
        
        
$bpc[count($bpc)] = $value;
        
        
$bpc serialize($bpc);
        echo 
$bpc;
    } 
I know I'm way off on this though .

Anyone know how I can go about this? I'm VERY confused .