detecting lines without anything on them
Posted: Mon Sep 05, 2005 2:39 pm
if I have a file that contains something like this
"
text text text
(possibly some spaces here)
text text text
text text text
text text text
(no spaces)
text text text text text text
(no spaces)
text text text
"
and I save the file as an array:
$contents = file("document.txt");
now do I make a new array that does not include any of the blank lines?
"
text text text
(possibly some spaces here)
text text text
text text text
text text text
(no spaces)
text text text text text text
(no spaces)
text text text
"
and I save the file as an array:
$contents = file("document.txt");
now do I make a new array that does not include any of the blank lines?