By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

Save an array

P: n/a
Hi what is the best way to store a multi dimentional array for later. I
dont know the 'shape' of the array in advance. Is writing to an XML file
the best option ar are there better ways ?

--
Arjen
http://www.hondenpage.com
Jan 25 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Rik
On Thu, 25 Jan 2007 21:45:43 +0100, Floortje <la**@zingmaarmetmijmee.enel>
wrote:
Hi what is the best way to store a multi dimentional array for later. I
dont know the 'shape' of the array in advance. Is writing to an XML file
the best option ar are there better ways ?
Depends on what you're using it for.
Serialize() is a nice method.

--
Rik Wasmus
Jan 25 '07 #2

P: n/a
Rik schreef:
On Thu, 25 Jan 2007 21:45:43 +0100, Floortje
<la**@zingmaarmetmijmee.enelwrote:
>Hi what is the best way to store a multi dimentional array for later.
I dont know the 'shape' of the array in advance. Is writing to an XML
file the best option ar are there better ways ?

Depends on what you're using it for.
Serialize() is a nice method.
Ic it is im gonna give that a try !.. had never heard of it before :-)

What Im using it for needs a little explenation. Im a psychologist
working at the Erasmus University. Currently im writing a script that
can combine all data known on students (grades,iq,gender,and lots more)
from a growing number of databases for research purposes. I need to save
the configuration of the combination of databases and settings on wich a
researcher has been working.

Kinda like a phpmyadmin for dummies with a save settings option :-g

currenty im storing the configuration in a session just to see if it
works :-)

--
Arjen
http://www.hondenpage.com
Jan 25 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.