Save an array

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Floortje

    #1

    Save an array

    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
    HondenPage: alles over uw hond of honden,fokkers en puppy's. Je vindt hier het hondenforum, honden foto's, fokkers, puppy's, de honden encyclopedie en nog veel meer !

  • Rik

    #2
    Re: Save an array

    On Thu, 25 Jan 2007 21:45:43 +0100, Floortje <lala@zingmaarm etmijmee.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

    Comment

    • Floortje

      #3
      Re: Save an array

      Rik schreef:
      On Thu, 25 Jan 2007 21:45:43 +0100, Floortje
      <lala@zingmaarm etmijmee.enelwr ote:
      >
      >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,gend er,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
      HondenPage: alles over uw hond of honden,fokkers en puppy's. Je vindt hier het hondenforum, honden foto's, fokkers, puppy's, de honden encyclopedie en nog veel meer !

      Comment

      Working...