Re: .DAT file with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



last mail got accidently sent before completion - please reply to that, or
the OP and not this.

I don't have much of a problem with code that takes a less blatent
inspiration of the following:

$file = "filename.txt";
$file = file_get_contents($file);
$file = explode("\n", $file);
$file = array_reverse($file);
$file = join("\n", $file);

echo $file;

I do however consider

$filename - "whatever.txt";  I perfer to abstract "configuration issues"
$rev_content = join("\n", array_reverse(file($file)))';
echo $rev_contaent;


to be cleaner

>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux