Sep-19-2019, 07:56 PM
If you are allowed to use 3rd party modules, you could try num2words module.
And if this SO answer inspired you, I would advise you to first approach the task with your own creativity and test out different ideas.
And if this SO answer inspired you, I would advise you to first approach the task with your own creativity and test out different ideas.