I've a PHP server with a log table in my MySQL database. When users connect to my server, I would like to store all the $_POST and $_GET variables into the log entry. The two variables is an array. Is there an easy way in PHP to convert these arrays to a string representation suitable for storing in my mySQL database?
As far as I know implode() is just for one-dimensional arrays. Maybe json_encode() would be a good way to go?