Code: Select all
<ul id="quotesul">
<?php
$file = "quotes.txt";
$Array = file($file);
foreach ($Array as $key => $val) {
echo "<li>";
echo $val;
echo "</li>";
}
?>
</ul>I want to know how to parse every other line (starting with 1) so that it skips the empty lines. I know that might not be the only way, another might be just ignoring lines that contain only EOF or something. Ideas?
Thanks.