sometimes when you are newbie to php, it gets complicated when you come up with arrays and you try to figure out how to get the value of an element, well, hopefully you can use this post here as i learned this today


<?php
// fill in some information
$userinfo["Name"] = "John Doe";
$userinfo["Location"] = "San Francisco";
$userinfo["Occupation"] = "Programmer";

foreach($userinfo as $key=>$value) {
print("$key is $value.<br>");
}
?>