I’m receiving a string like this:
{
key1 = "some value";
key2 = "some value";
key3 = "some value";
key4 = 1235678;
}
and I need to parse it so it becomes a valid php object or array. I suppose Regex is the way to go but I’m really bad at it.
Try this .. Crazy But it works ( I would recommend JSON anyway )
Result