----- Original Message -----
From: "Clark" <[EMAIL PROTECTED]>
Sent: Saturday, February 16, 2002 9:15 PM


> Two questions:
>
> 1) Is it possible to write an array to a file?

Yes, serialize it first with http://www.php.net/serialize.  You can also
place this in a db text field because it will be a character representation.

> 2) Is it possible to specify the name of the key to each item of an array
> when you get the array using file().

When retrieving the saved array, unserialize it, and you'll get the same
array back.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to