3

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 Answers 2

3

serialize and unserialize will do the trick.

Sign up to request clarification or add additional context in comments.

Comments

2

You could use serialize() and unserialize().

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.