I want to use PHP to show the contents of the DAT from back to front. HOw do
I do that?
Thanks!
I used the following code that Paul suggested, but it didn't reverse my
content.
The file I would want to have the content reversed is as attached. Chinese
characters is in the file so...
Suggestions?
-Original Message-
From: Paul Novitski [mailto:[EMAIL PROTECTED]
Sent: Thursday, March
Sorry im new but, how do we read from a file to an array? I've studied C but
not with PHP and it's not working for me... Suggestions?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:58 PM
To: [EMAIL PROTECTED]; php-general@lists.php
I use:
$frob = fopen('data/rob.dat','r');
if ($frob) {
while (!feof($frob)) {
$buffer = fgets($frob, 4096);
echo $buffer;
$glorp[] = $buffer; // places line in array
}
}
$read = array_reverse($glorp);
However, only "Array"
4 matches
Mail list logo