0) if($num > 2) $phrase .= ", "; else $phrase .= " "; if($i == $num - 1 && $num > 1) $phrase .= "and "; $phrase .= $adjectives[$i]; } $phrase .= ' ' . $nouns[0] . '' . $punctuation[0]; return $phrase; } ?>