I have an odd set of fields for properties for my client.
Some have multiple
letters which correspond to a code table. How can I loop
through the string
and replace the letters with words
For example
A = central air
B = ceiling fan
C = A/C Unit
If the field looks like 'ABC', it would be outputted to the
page as 'central
air ceiling fan A/C Unit'
You don't say how many unique letters you have, but I presume
it is 26 or less. If that's the case, you could index an array that
has been initialized with the words. See concept code below. It
assumes only upper case letters.