Possible Duplicate:
Convert PHP array string into an array
Which function can be used to convert an array into a string, maintaining your ability to return the string into an array?
Which function can be used to convert an array into a string, maintaining your ability to return the string into an array? |
|||||
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
The |
|||
|
Just to add, there's also the
Example:
Returns this output (which can then be converted back to an array using eval()):
|
|||
|
You can use the implode function to convert an array into a string:
If you want to convert it back to an array you can use the explode function:
|
|||||||
|
|
|||
|