tags:

views:

31

answers:

2

Does anyone know there have any other way that (by not using json_encode and json_decode) to encode an array into string then decode it back into string? I remember there have another call unlis...(cannot really remember the name :( )

+2  A: 

serialize and unserialize will do the trick.

Justin Ethier
+1  A: 

You could use serialize() and unserialize().

David