Jump to content

Archived

This topic is now archived and is closed to further replies.

Horst Azeglio

How to convert an recursive array into a string and vice versa

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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()

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.