Login   Register  
PHP Classes
elePHPant
Icontem

More simple

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Array Storage  >  All threads  >  More simple  >  (Un) Subscribe thread alerts  
Subject:More simple
Summary:Serialize and Unserialize functions
Messages:1
Author:FanFataL
Date:2005-02-25 21:20:34
 

  1. More simple   Reply  
Picture of FanFataL
FanFataL
2005-02-25 21:20:34
Hmm...

Do you know serialize and unserialize php functions. They're for simple data storage - even arrays. :)

- http://php.net/serialize
- http://php.net/unserialize

Greatings ...

<?php
function arrayCompress($data) {
return gzcompress(serialize($data));
}

function arrayUncompress($data) {
return gzuncompress(unserialize($data));
}
?>