I use arrays like this userlist:
<userlist.lst>
user1#user2#user3#user4
You can easily load it from file to array using function LoadFromFile (have to code it first {string LoadFromFile ($filename)}):
$users = split ("#", LoadFromFile ("userlist.lst"));
Now I can deal with the users easily with for-function or directly with row number.
for (£i = 0; $i < count ($users); $i++)
if ($users[$i] == $user)
print "User $user found!";
You also save it easily with SaveToFile (have to code it first {void LoadFromFile ($filename, $data)})🙂:
SaveToFile ("userlist.lst", implode ("#", $users));
Now it's on your harddisk on it's original form:
<userlist.lst>
user1#user2#user3#user4
To add new user (item) to your list just use array_push ($users, $newitem) after load-function.
Hope this helps some1 to handle lists and that sort of stuff. Just send mail to me if you have need those FileHandling-functions.