I play a MUD (Multi User Dimension) game (a text only game very much, otherwise, similar to World Of Warcraft).
In this text only game, colored text is output to the client using tags like {Y for bright Yellow, {y for subdued yellow and {x to return to default color. There is about a dozen options for colors.
I would like to create a php function to duplicate this functionality as closely as possible so that when I code a webpage I can do this directly in the html (after a function call?).
Please help. I have a basic understanding of coding and can pull apart and use other peoples’ code but I’m new to php.