$textToFind = 'LOGIN PASSWORD';
$textToFindArray = explode(' ', $textToFind);
$matchedLines = [];
$lines = file_get_contents('base.csv');
foreach($lines as $line) {
foreach($textToFindArray as $textToFind) {
if(strpos($line, $textToFind) !== false) {
$matchedLines[] = $line;
}
}
}
print_r($matchedLines);