note 35367 deleted from function.fopen by vincent

From: Date: Thu, 28 Aug 2003 19:05:53 +0000
Subject: note 35367 deleted from function.fopen by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55257@lists.php.net to get a copy of this message
Note Submitter: dougSPAMLESS@NOSPAMbadblue.com ---- check this function out, which i discovered by accident: $aTemp = file($sSomeFile); opens the file, creates an array of strings representing each line of the files, then closes the file. This was a huge time-saver for my swatch-style log reader. For example, after executing, the array would read: $aTemp[0] => "Dear Joe:" $aTemp[1] => "" $aTemp[2] => "Thanks for the order. Your shipment should" $aTemp[3] => "arrive on Monday. Best Regards," $aTemp[4] => "" $aTemp[5] => "Ann Marie"

« previous php.notes (#55257) next »