Posted By

nicolaspar on 02/01/07


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

basicmagic


Php - Formatear con puntos RUT


 / Published in: PHP
 

  1. function getPuntosRut( $rut ){
  2. $rutTmp = explode( "-", $rut );
  3. return number_format( $rutTmp[0], 0, "", ".") . '-' . $rutTmp[1];
  4. }
  5.  
  6. echo getPuntosRut('12345678-9');

Report this snippet  

You need to login to post a comment.