note 96639 deleted from function.file by danbrown

From: Date: Tue, 09 Mar 2010 16:49:02 +0000
Subject: note 96639 deleted from function.file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166833@lists.php.net to get a copy of this message
Note Submitter: s4m dot pepin at gmail com ---- Correction to last post, works well, but produces a notice on the first item processed: Undefined offset. just add the -1 to the initial $i count. <?php $logBuffer = file($pathToLog); for($i=count($logBuffer)-1;$i>0;$i--){ $output_buffer .= $logBuffer[$i]; } ?>

« previous php.notes (#166833) next »