wont pretend to know too much about this, most of wot ive got, ive got together from php.net, here and a book in a foreign language. I was making a little password checker and want to do it in an array. Under the username however, i want to have other things too, like for instance his age. So when he logs on, i check his password with his username and then just give an echo saying "you are".$age or something like that. So heres wot ive got:
// i was using foreach which works fine til i go multi
foreach($allowed as $username=>$userpw)
foreach($userpw as $key=>$age)
echo "Hello ".$username.", you are ".$age. "years old"
Any help with the code would be greatly appreciated... or if there is an easier way of doing it?