Here's a snippet of a string that I'm working to give some reference.
CQ9037997338]02054030000020010149502010501000149ID7590 200212110000000145H\DC00122H\DG000000000000\DN01\DOKASON \DU00272G\E700020000]02054040000240010150486007823000067HD7590 200212110000000081D\DC00102C\DG000000000000\DN01\DOKASON \DU00170A\E700240000]02054050000060030100186198804001425AD7590
I'm not as much interested in the ] element as I am the 7 digits following the ] element.
This is the code I'm using to find those 7 digits currently.
$pos = strpos($claim,"]");
$rxn = substr($claim,$pos+2,7);
My quandry is how to parse the entire string in a loop (?) and build an array $rxn of those values. 🙂