Re: MultiSelect Array Example
| From: | Matt McClanahan | Date: | Mon, 07 Aug 2000 14:53:57 +0000 |
| Subject: | Re: MultiSelect Array Example | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10469@lists.php.net to get a copy of this message | ||
On Mon, 7 Aug 2000, Bill Chase wrote:
> Looking for an example of traversing a multi-select list box array. I'm
> missing a property somewhere
How about http://zend.php.net/FAQ.php#7.14
To traverse the array, as with any other array, try
echo
'<table><tr><th>Key</th><th>Value</th></tr>';
while( list($key,$vaL) = each($array) )
echo '<tr><td>' . $key . '</td><td>' . $val .
'</td></tr>';
echo '</table>';
Matt