How can we post a huge array in a single input in a form?
We can use PHP function serialize.
We can use PHP serialize function to generates a sortable representation of a value.
After post the data, we can use PHP function unserialize to change it back.
We had better use PHP function htmlentities to display array in the form properly and use html_entity_decode to change it back. PHP 函数示范
More about this…