I have this kind of output: 1342&-4&-6 And it could be more times or less: 1342&-4 (I need to replace it with: 1342,1344) 1340&-1&-3&-5&-7 (I need to replace it with: 1340,1341,1343,1345,1347)
I've tried to use preg_match but with no success, Can someone help me with that?
Thanks,