hey, please check this code:
this results in output "option140"PHP Code:$poll = array ( "options" => array ( "option1", "option2","option3"),
"votes" => array ( 40,20,10)
);
foreach ($poll as $value) {
echo $value[0];
}
now if I want to display it like (for instance):
<input type=''text" name="option" value="option1"><input type="text" name="votes" value="40">
where as the next foreach would result in option2 and votes "20"
how would I manage this? thanks in advance





Bookmarks