I have multidimensional and quite complex array that holds different data types, booleans, text inputs, and even whole textareas with all white space, html tags and so forth.
What's the best PHP way of displaying my array as a string of compressed data so I'd be able to export and store (let's say in .txt file) it? I'm going to need to restore this data in the future (import the data through text input field) , so it must be parsable. I'd love this string to be as short as possible. Any hints?