You can save arrays in a text file, serialize .
Sort of
$fh = fopen("db.txt", "w"); fwrite($fh, serialize(array("field"=>"data")); fclose($fh);
Get it again using fread and mode "r", and then using the unserialize method.
$fh = fopen("db.txt", "r"); $data = unserialize(fread($fh)); fclose($fh);
And then manage your data in an array.
Ghpst source share