Return to Snippet

Revision: 2314
at February 1, 2007 07:17 by nicolaspar


Initial Code
function getPuntosRut( $rut ){
	$rutTmp = explode( "-", $rut );
	return number_format( $rutTmp[0], 0, "", ".") . '-' . $rutTmp[1];
}

echo getPuntosRut('12345678-9');

Initial URL

                                

Initial Description

                                

Initial Title
Php - Formatear con puntos RUT

Initial Tags

                                

Initial Language
PHP