Hi Sid, Try json_encode / json_decode http://nz.php.net/manual/en/function.json-encode.php, http://nz.php.net/manual/en/function.json-decode.php
Regards Bruce On Sun, Aug 30, 2009 at 9:09 AM, Sid Bachtiar <[email protected]>wrote: > > Hi all, > > I can't remember the names of these two functions. Basically a > function to encode object/array to string and a function to decode the > string back to object/array. > > $a = array('a' => 'abc'); > $s = forgotten_function_encode($a); > > then the result is something like > > $s = "{'a':'abc'}"; > > and there is another function, the decoder to turn it back to array > > $a = forgotten_function_decode($s); > > Anyone knows the function I'm talking about? May be I'm just imagining > things here. > > Regards, > > Sid > > -- Bruce Clement --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
