Jin Yong
Jin Yong

Reputation: 43778

other way can encode array into string and decode it back to array?

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 :( )

Upvotes: 3

Views: 553

Answers (2)

David
David

Reputation: 7153

You could use serialize() and unserialize().

Upvotes: 2

Justin Ethier
Justin Ethier

Reputation: 134217

serialize and unserialize will do the trick.

Upvotes: 3

Related Questions