Horst Azeglio Posted May 2, 2006 Share Posted May 2, 2006 Maybe this belongs to the "PHP Newbie forum, but whatver..."Let's say I have an array which contains array which contain arrays etc...How can I convert it to a string so I can put it in a MySQL entry in order to take it back later?Maybe there's a smarter way to do what I'm trying to do. Any ideas? Thank you. Quote Link to comment Share on other sites More sharing options...
zq29 Posted May 2, 2006 Share Posted May 2, 2006 Could you post up your code so far, or even an explination of what you are trying to acheive with your matryoshka-like arrays - Maybe it could be done without all of the nested arrays. Quote Link to comment Share on other sites More sharing options...
Horst Azeglio Posted May 2, 2006 Author Share Posted May 2, 2006 I'm sure it can be done without nested arrays, but I'm sure I will need to convert matryoshka-like arrays to strings someday. Quote Link to comment Share on other sites More sharing options...
sasa Posted May 2, 2006 Share Posted May 2, 2006 [!--quoteo(post=370727:date=May 3 2006, 12:58 AM:name=Horst Azeglio)--][div class=\'quotetop\']QUOTE(Horst Azeglio @ May 3 2006, 12:58 AM) [snapback]370727[/snapback][/div][div class=\'quotemain\'][!--quotec--]I'm sure it can be done without nested arrays, but I'm sure I will need to convert matryoshka-like arrays to strings someday.[/quote]look serialize() Quote Link to comment Share on other sites More sharing options...
Horst Azeglio Posted May 2, 2006 Author Share Posted May 2, 2006 Thanks a lot sasa, it works perfectly, thank you too SemiApocalyptic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.