PHP Serialize
Like PHP Serialize and Unserialize Functions.
Sample:
var Test = Array();
Test[-8.52] = 'fff';
Test['tt'] = Array();
Test['tt']['sss'] = 123;
Test['ss'] = 'def';
Test['tt'][10] = 'abc';
ser = $.phpSerialize(Test);
alert(ser);
$.phpUnserialize(ser);
Result:
a:3:{i:-8;s:3:"fff";s:2:"tt";a:2:{s:3:"sss";i:123;i:10;s:3:"abc";}s:2:"ss";s:3:"def";}
评论