and/or STRUCTURES to allow use the use of the name/value pairs like this.
Someone suggested JSON would give you something better. You might research that.
Just posting a follow up. The link above has functional code for compressing a PHP array into a return delimited list of embedded and quoted Let variables.
It also has script code at the bottom which will parse things on the FMP side of things.
One thing to note is that this may get confused if you have a lot of internal paragraph returns within your array values. I didn't test against that scenario as I'm working with simple values coming from an XML input.
Unexpected carriage returns can ruin a good list so I use a de-CR and a re-CR function. To de-CR a string, I replace CR with backspace, char(127). To re-CR, replace backspace with CR.
Yeah, I've done the character swap dance. In this case, the level at which you have embedded list values can be determined by the number of backslahes preceeding the pilcrow. I just didn't test against returns within the values themselves.