the code below chose (without repetitions) a random line from a txt file. 

```
$filename = "randomlines.txt"; 
$how_many_to_show = 10; 
if ($random = file($filename)) { 
 shuffle($random); 
 for ($i = 0; $i < $how_many_to_show; $i++) { 
  $color[$i]=$random[$i]; 
 } 
} else { 
 die('Could not get contents of: ' . $filename); 
} 

```

It works fine. When i put the following string 

```
    print($fileContents[$i]. '<br />');

```

in place of this 

```
$color=$random[$i]; 

```

i see on my screen 10 different lines, picked up from randomlines.txt

However i need to associate each different random line to 10 different variables (es. $color1, $color2....$color10) for my subsequent code.