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. Link to comment https://forums.phpfreaks.com/topic/8922-how-to-convert-an-recursive-array-into-a-string-and-vice-versa/ 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. Link to comment https://forums.phpfreaks.com/topic/8922-how-to-convert-an-recursive-array-into-a-string-and-vice-versa/#findComment-32784 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. Link to comment https://forums.phpfreaks.com/topic/8922-how-to-convert-an-recursive-array-into-a-string-and-vice-versa/#findComment-32785 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() Link to comment https://forums.phpfreaks.com/topic/8922-how-to-convert-an-recursive-array-into-a-string-and-vice-versa/#findComment-32791 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 Link to comment https://forums.phpfreaks.com/topic/8922-how-to-convert-an-recursive-array-into-a-string-and-vice-versa/#findComment-32795 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.