php - JSON strange format -
i'm trying reverse engineer cake php code years ago. data being stored in format looks json, i'm having trouble determining if custom format or particular method json.
the data stored in single field in manner (i replaced identifying data letter t or number 1):
a:7:{s:4:"site";a:11:s:13:"ttttttnumber";s:2:"13";s:14:"tttttttnumber";s:9:"001111111";s:11:"ttttsiteref";s:16:"tt00170326300013";s:10:"tttttttttt";s:15:"d00170326300013";s:11:"ttttttname";s:28:"tttttt t tttt tt t t t ";s:19:"ttttttaddressline1";s:17:"ttt t t t t tt t t ";s:19:"tttttaddressline2";s:0:"";s:19:"ttttaddressline3";s:6:"tttttt";s:19:"tttttaddressline4";s:2:"ca";s:15:"ttttttpostcode";s:10:"11111-9424";s:7:"address";s:29:"tttttt tttt,tt tttt";}s:15:"tttt_reference";i:8296;s:6:"detail";a:11:{s:10:"ttttt_type";s:3:"svm";s:12:"end_datetime";s:19:"09/06/2014 10:40 pm";s:8:"site_ref";s:15:"001703263/00013";s:4:"note";s:29:"tttttttttttt t t t tt t t ";s:12:"contact_name";s:0:"";s:13:"tttttt_visit";s:2:"-1";s:10:"ttttttttt";s:12:"486900096869";... i can tell s:# number of characters in string , i: seems mean integer. i'd find if there simple way decode array, similar json_decode.
you can use json_decode($jsonstring,true); convert data array
Comments
Post a Comment