Using preg\_match\_all I retrieve (as an example) the follow string:

ABC033-101-143-147-175-142115-

Here is the code for that: 

```
if (preg_match_all('#([A-Z]{2}C)((?:[0-9]{3}-){1,10})([0-9]{6})#', $wwalist, $matches))

```

I am able to get the output I want (033-101-143-147-175-) by using the following code:

```
$wwaInfo['locationabbrev'][$wwanum] = $matches[2][$keys[$wwanum]];

echo "locationabbrev";

```

From here, I need to convert the sets of 3 numbers. Every number has a corresponding abbreviation. For example, 033 = FY, 101 = CY, etc. I need locationabbrev to output a string like: "FY-CY-AY-GG-CA" as opposed to the numbers. Any idea how I would go about this?

Thanks for taking a look!