Ed Curtis <mailto:[EMAIL PROTECTED]>
    on Monday, October 20, 2003 11:39 AM said:

> What I'd like to do is break this into a multidimensional
> array so I have approximately the following depending on what they
> choose for each example.

[snip]

> I tried the following with no luck.
> 
>       $listing['count'] = $_POST['listing[count]'];
> 
>       $listing['$count'] = explode(",", $listing['$count']);

Dis:

function returnArray($input)
{
        $arrCnt = count($input);
        $iCnt = 0;

        while($iCnt < $arrCnt)
        {
                $listing[$iCnt] = explode(",", $input[$iCnt]);
        }

        return $listing;
}

Untested, but looks ok.


Chris.

--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to