To get "{'a':'abc'}" from array('a' => 'abc') it should be json_encode
indeed.
Bruce Clement:
> Ignore my earlier suggestion.
>
> Dan's suggestion of Serialize/Unserialize looks a better fit for the
> OP's query.
>
> Bruce
>
> On Sun, Aug 30, 2009 at 9:15 AM, Bruce Clement
> <[email protected] <mailto:[email protected]>> wrote:
>
> 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
>
> --
> 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]
-~----------~----~----~----~------~----~------~--~---