RE: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Albert
Gregory Machin [mailto:[EMAIL PROTECTED] 
 Hi
 I'm looking for a good example of writing multidimensional arrays, and
 reading them back .

http://za2.php.net/manual/en/function.serialize.php
and
http://za2.php.net/manual/en/function.unserialize.php

Call serialize() when saving the array to the file and unserialize() to read
it back

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.23/243 - Release Date: 2006/01/27
 


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



Re: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Jochem Maas

Gregory Machin wrote:

Hi
I'm looking for a good example of writing multidimensional arrays, and
reading them back .


serialize() and alternatively if you find it handy to be able to
manually read the contents of the array written to the file there is also
var_export() which can return valid php code in a readable form.



Thanks for you time .

--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096


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



Re: [PHP] writing multidimensional arrays to file ?

2006-01-30 Thread Gregory Machin
Thanks for you input. I will lookinto alt the sugetions. Many thanks/. Have
a grate day .

On 1/30/06, Jochem Maas [EMAIL PROTECTED] wrote:

 Gregory Machin wrote:
  Hi
  I'm looking for a good example of writing multidimensional arrays, and
  reading them back .

 serialize() and alternatively if you find it handy to be able to
 manually read the contents of the array written to the file there is also
 var_export() which can return valid php code in a readable form.

 
  Thanks for you time .
 
  --
  Gregory Machin
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  www.linuxpro.co.za
  www.exponent.co.za
  Web Hosting Solutions
  Scalable Linux Solutions
  www.iberry.info (support and admin)
 
  +27 72 524 8096




--
Gregory Machin
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096