I need to loop through some JSON and get the Ids
Here is my JSON
{"Master":123456,"Ids":[1,3,8]}
I need to get all of the Ids
and add a prefix .pre-
so I end up with this in PHP:
$Ids = ".pre-1, .pre-3, .pre-8"
Any help with this is very much appreciated. I did look through other posts and tried some things but I couldn't do it.
Thanks