Re: .DAT file with PHP

From: Date: Wed, 08 Mar 2006 22:36:07 +0000
Subject: Re: .DAT file with PHP
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-231696@lists.php.net to get a copy of this message
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 >

« previous php.general (#231696) next »