Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/07/2003, 08:26
Avatar de BrujoNic
BrujoNic
Super Moderador
 
Fecha de Ingreso: noviembre-2001
Ubicación: Costa Rica/Nicaragua
Mensajes: 16.935
Antigüedad: 22 años, 5 meses
Puntos: 655
Ejemplo obtenido del manual PHP:
Código PHP:
<?php

    $number 
1234.56;

    
// english notation (default)
    
$english_format_number number_format($number);
    
// 1,234

    // French notation
    
$nombre_format_francais number_format($number2','' ');
    
// 1 234,56

    
$number 1234.5678;

    
// english notation without thousands seperator
    
$english_format_number number_format($number2'.''');
    
// 1234.57

?>
__________________
La tecnología está para ayudarnos. No comprendo el porqué con esa ayuda, la gente escribe TAN MAL.
NO PERDAMOS NUESTRO LINDO IDIOMA ESPAÑOL