How can i convert a multidimensional array to string and vice versa using php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohan lal
    New Member
    • Mar 2011
    • 25

    How can i convert a multidimensional array to string and vice versa using php?

    Hi..

    I have a multi dimensional array i want to convert this array to string and saved in to a file.Also need to convert string that stored in the file to the previous array for further processing. (i.e the file is like a table in the database ). Is it possible to convert the array to string and then back to array using php?
    If anyone knows please help me thanks in advance...
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Look at serialize and unserialize.

    Comment

    Working...