is seems that the main problem was that you weren't sending your array as an argument into the functions :
<?php
date_default_timezone_set('America/Sao_Paulo');
$lists = array(
"drugstores" => array("Santa Lúcia", "Drogathermas", "Drogacentro", "Drogaria Rosario"),
"fastfoods" => array("Mcdonald's", "Habib's", "Burger King", "Bob's")
);
$hour = date("H:i:s");
$person1 = 'Willian';
$person2 = 'Alex';
$personage1 = 18;
$personage2 = 20;
echo "Right now the clock ticks with ".$hour."<br />";
//functions
//1st person
function whage1( $person1, $personage1, $lists ){
$str = "";
if( $personage1 <= 18 ) {
$str = $person1." is going to ".$lists["drugstores"][0];
}else{
$str = $person1." is going to ".$lists["drugstores"][1];
}
return $str;
}
//2nd person
function whage2( $person2, $personage2, $lists ){
$str = "";
if( $personage2 <= 19 ) {
$str = $person2." is going to ".$lists["fastfoods"][0];
}else{
$str = $person2." is going to ".$lists["fastfoods"][1];
}
return $str;
}
echo whage1($person1, $personage1, $lists)."\n<br>";
echo whage2($person2, $personage2, $lists)."\n<br>";
?>