Number to Letters

Hi.
Is possible to get in a controller the number in letters of an int
(1.250.000) (mil, doscientos cincuenta pesos)
Thanks.

Use the a built-in PHP function for that \strlen($int);

I think you’re looking not for the length of a string, but to convert a number into the “words” representation (e.g. from “1” to “one”)? For that, see https://stackoverflow.com/questions/11500088/php-express-number-in-words