Need a small fix in formatting a PHP script to get proper output.
Input string is
Test Product=Small-10,Medium-15+Test Base Product=Single Size-50+Test Model Product=Half-10,Full-20,Quarter-30
Required Output is
[
{
"product":"Test Product",
"sizes":["Small", "Medium"],
"prices":["10", "15"]
},
{
"product":"Test Base Product",
"sizes":["Single Size"],
"prices":["50"]
},
{
"product":"Test Model Product",
"sizes":["Half", "Full", "Quarter"],
"prices":["10", "20", "30"]
}
]
Hello there. I work in my company with PHP development. There i usually do alterations like this in your code. I can help you with it. Please tell me if you're interested! Thanks!