I have text files that store an address and a description in each file. I am trying to display the contents of those files, but I cannot seem to get the entire description to display but only the first line [1]. I there a way to have a range of '$listDescription' lines displayed?? Say line [1] ---> [the last line]???
here's asnippet of what i have.
Code: Select all
array_multisort( $listings_array, SORT_NUMERIC, SORT_DESC );
array_splice( $listings_array, $display );
$num_listings = ( count( $listings_array ) );
foreach ( $listings_array as $val )
{
$listings_file = file("listings/$val");
$listAddress = $listings_file[0];
$listDescription = $listings_file[1];
echo '<b>'.$listAddress.'</b>';
echo $listDescription.'<br>';
}