PHP Classes

More simple

Recommend this page to a friend!

      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   Report abuse  
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));
}
?>