Coldfusion - taking a Serialized String and converting it to a Structure
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-05-20T04:26:30Z
Indexed on
2010/05/20
4:30 UTC
Read the original article
Hit count: 235
I have the following serialized string from a nested sortable list:
ul[0][id]=main1&ul[0][children][0][id]=child2&ul[0][children][0][class]=&ul[1][id]=main3&ul[2][id]=main4&ul[3][id]=main5
I want to be able to record this in the database, and think I need a structure to do this. What's the best way to turn this into a structure, so I can sort it in the database, and easily render the list on the page in the future.
Thanks,B
© Stack Overflow or respective owner