Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/10/2012, 18:42
Avatar de kendall00
kendall00
 
Fecha de Ingreso: septiembre-2011
Ubicación: $Ubicacion => ['Costa Rica'];
Mensajes: 85
Antigüedad: 13 años, 5 meses
Puntos: 5
Respuesta: numeros a letras

Algo así
Código PHP:
Ver original
  1. <?php
  2. function replace($what){ #O una class como sea mejor!
  3. $txt = str_replace("0"," cero ",$what);
  4. $txt = str_replace("1"," uno ",$what);
  5. $txt = str_replace("2"," dos ",$what);
  6. $txt = str_replace("3"," tres ",$what);
  7. $txt = str_replace("4"," cuatro ",$what);
  8. $txt = str_replace("5"," cinco ",$what);
  9. $txt = str_replace("6"," seis ",$what);
  10. $txt = str_replace("7"," siete ",$what);
  11. $txt = str_replace("8"," ocho ",$what);
  12. $txt = str_replace("9"," nueve ",$what);
  13. return $txt;
  14. }
  15. echo replace("010123-4");
  16. ?>
Tu lo puedes adaptar es solo una idea!
__________________
El limite es la imaginacion... con Dios todo es posible.