Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/01/2004, 11:20
Avatar de mveraa
mveraa
 
Fecha de Ingreso: diciembre-2002
Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 21 años, 3 meses
Puntos: 2
hola gracias por tu ayuda pero el script me marca un error en la linea 9

function validar_rut($rut,$digito_v){
$x=2;
$sumatorio=0;
for ($i=strlen($rut)-1;$i>=0;$i--) // linea 9
{
if ($x&gt=7){$x=2;}
$sumatorio=$sumatorio+($rut[$i]*$x);
$x++;
}

el error:


Parse error: parse error, unexpected '=', expecting ')' in c:\php\www\prueba\vrut.php on line 9

me podrias indicar el error porfavor