Okay, I'll admit, this is my first time using serialize(). I'm using it to put an array into a database. Here's an example of the data that gets put in:
a:8:{s:9:"mounttype";s:15:"preinkedEndorse";s:5:"mount";a:4:{s:4:"name";s:22:"P4 - Endorsement Stamp";s:6:"height";d:0.75;s:5:"width";d:1.625;s:5:"price";s:5:"14.95";}s:7:"message";a:7:{i:0;a:4:{s:4:"text";s:19:"PAY TO THE ORDER OF";s:8:"fontface";s:5:"swiss";s:4:"size";s:1:"9";s:5:"align";s:6:"center";}i:1;a:4:{s:4:"text";s:14:"YOUR BANK NAME";s:8:"fontface";s:5:"swiss";s:4:"size";s:1:"9";s:5:"align";s:6:"center";}i:2;a:4:{s:4:"text";s:16:"FOR DEPOSIT ONLY";s:8:"fontface";s:5:"swiss";s:4:"size";s:1:"9";s:5:"align";s:6:"center";}i:3;a:4:{s:4:"text";s:13:"CUSTOMER NAME";s:8:"fontface";s:5:"swiss";s:4:"size";s:1:"9";s:5:"align";s:6:"center";}i:4;a:4:{s:4:"text";s:9:"ACCOUNT #";s:8:"fontface";s:5:"swiss";s:4:"size";s:1:"9";s:5:"align";s:6:"center";}s:4:"date";N;s:5:"lines";s:1:"5";}s:7:"editing";s:1:"1";s:5:"color";s:5:"black";s:6:"border";s:2:"No";s:5:"lines";s:1:"5";s:8:"quantity";i:1;}
Now am I just dumb, or is it not writing the keys? Most of these values have keys. Even worse, unserialize fails! Can anybody help me?