Categories
Snaps
Search
Register
Contact
API
Safe (un)serialization/marshalling
Serialize to ASCII.
function safe_serialize($whatever) { return base64_encode(gzdeflate(serialize($whatever))); } function safe_unserialize($whatever) { return unserialize(gzinflate(base64_decode($whatever))); }
Usage
Uses PHP serialize, so input is as per serialize ($mixed).
Comments
Add your comment
Search
Login
Coder: fireshark
View more snaps from fireshark
View fireshark's profile
Rate this snap
Rating:
0
/ 5 (
0
votes) 937 views
Custom class generator
Selected snaps:
None selected yet.
Hot PHP snaps
PHP image slideshow auto
PHP pagination class
Bootstrap PHP code
Clean URL
PHP ffmpeg Upload Script
Rijndael 256 bit encryption using mcrypt
generate a preview image from an FLV file on-the-fly, or to save
Median calculator
Partners
PHP Site
PHPSnips
Comments