$word = file('list.txt');
$content = file_get_contents('fleetyfleet.txt');
fleetyfleet.txt contains
DimensionNameGreenrandomjunktextextcstuffidonwantDimensionNameBluemoreeecrapidontwannaseeeDimensionNameYellowDimensionNameGrayrandomcrapDimensionNameRed
list.txt contains
Green Blue Yellow
what i want is to be able to find DimensionName then store the word after it into an array if the word is in list.txt
so when script was ran the result stored in array would be Green,Blue,Yellow but not Red and Gray because they are not in our list