i use the following to extract a word or two from a text file:
<?
$fp = file('word.txt');
for($i = 0; $i <sizeof($fp);$i++){
echo $fp[$i]. "";
}
?>
How can i get it, using the above and adding more to display depending on the word stored. for example, if the work in the text file is green, then how would i tell to change the colour of the it is in to gree, and if its red to red etc...
__________________