note 5547 deleted from Array functions by ronabop

From: Date: Sun, 03 Sep 2000 09:29:12 +0000
Subject: note 5547 deleted from Array functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3988@lists.php.net to get a copy of this message
I want a function to return a two-dimensional array, containing the parsed contents of a text file. The format of the text file is:<br> <pre>username,f34d76asd6542hfg54387634 username2,d8937f98f73987fkjs3498 </pre><br> I want the array to be something like<br> $userdb[0][user] = username<br> $userdb[0][pass_hash] = f34d76as...<br> The number of lines may change. I guess that file() and explode() is the clue. And, yes, it must work in PHP 3.<br>Any ideas would be greatly appreciated.

« previous php.notes (#3988) next »