Currently I'm writing some text to an image with imagefttext in PHP.
Sometimes I have a text with an emoji in it and I'm just removing it, because I can't draw it in a nice way.
Now I want replace the emoji from the text with the actual image of the emoji, so the text looks on the image like it should look "normal" on a smartphone.
But now I'm despairing on how can I replace an emoji image with the correct emoji in the text.