how associate multiple elements with a single key?

Store the multiple elements in an array:
$fruits = array('red' => array('strawberry','apple'),
                'yellow' => array('banana'));
Or, use an object:
while ($obj = mysql_fetch_object($r)) {
    $fruits[ ] = $obj;
}