Another way can encode an array into a string and decode it back to an array?

Does anyone know if there is any other way (without using json_encode and json_decode) to encode the array into a string and then decode it back to a string? I remember that there is another call that does not contain ... (I can not remember the name :()

+3
source share
2 answers

serialize and unserialize will do the trick.

+3
source

You can use serialize () and unserialize () .

+2
source

Source: https://habr.com/ru/post/1740406/


All Articles