не может разбить строку новыми строками из txt
файла
colors.txt
rgb(15, 255, 255)
rgb(15, 255, 252)
rgb(15, 255, 249)
php
$str = file_get_contents('colors.txt');
$arr = explode(PHP_EOL, $str);
$ht = '';
foreach($arr as $el){
$ht .= "<div class='color' style='background:" . $el . "'></div>\n";
}
echo $ht; // nothing visible on page
также пытался
$arr = explode('\n', $str);
$arr = explode('\n\r', $str);
$arr = explode('\r\n', $str);
$arr = explode('LF', $str); // LF stands in notepad++
Любая помощь?