Connecting Tech Pros Worldwide Forums | Help | Site Map

Save an array

Floortje
Guest
 
Posts: n/a
#1: Jan 25 '07
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

Rik
Guest
 
Posts: n/a
#2: Jan 25 '07

re: Save an array


On Thu, 25 Jan 2007 21:45:43 +0100, Floortje <lala@zingmaarmetmijmee.enel>
wrote:
Quote:
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
Floortje
Guest
 
Posts: n/a
#3: Jan 25 '07

re: Save an array


Rik schreef:
Quote:
On Thu, 25 Jan 2007 21:45:43 +0100, Floortje
<lala@zingmaarmetmijmee.enelwrote:
>
Quote:
>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
Closed Thread