Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/12/2017, 07:52
pablobaez
 
Fecha de Ingreso: octubre-2005
Mensajes: 129
Antigüedad: 19 años, 5 meses
Puntos: 0
too few arguments to function php

hola estoy haciendo una funcion en php

Código:
function formato_rut( $rut )
{
	$rutTmp = explode( "-", $rut );
	return number_format( $rutTmp[0], 0, "", ".") . '-' . $rutTmp[1];
}
pero me da error too few arguments to function, en php 7 esto paso a error como puedo solucionarlo
__________________
Pablo Baez