2 easy questions
Posted: Sun Sep 27, 2009 3:57 am
1. Why doesnt this show me my arrays combined?
2. Im making a guestbook wich is writing and getting data from a text file. But i want the newest post on top instead of filling it on downwards. Any idea how to solve this? Thanks a lot!
Code: Select all
function nameage($name, $age){
$combined = array_combine($name, $age);
return $combined;
}
$name = array("Floyd","Morrison","Leonard");
$age = array(27,24,42);
nameage($name, $age);
print_r($combined);2. Im making a guestbook wich is writing and getting data from a text file. But i want the newest post on top instead of filling it on downwards. Any idea how to solve this? Thanks a lot!