> How do I write an array to a file? For example, I need to write just this in
> a file:
> <?php $Company = array("Item 1", "Item 2", "Item 3", "Item 4", "Item 5",);
> ?>
> I've been hung up for 2 days on this. Any help would be appreciated.

Use serialize prior to writing the data to the file and unserialize upon retrieval.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to