Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/09/2008, 11:53
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 21 años, 6 meses
Puntos: 839
De acuerdo Respuesta: ayuda urgente!!!!!

Pues como te dije, usamos el InStr para saber cuál separador está primero:
Código PHP:
Texto = "ca.lle America"
sep = Array(" ", ".", ";")
CurrentPos = Len(Texto)
For 
Looping = 0 To UBound(sep)
    
Find = InStr(Texto, sep(Looping))
    If 
Find < CurrentPos And Find > 0 Then
        CurrentPos 
= Find
        CurrentSep 
= sep(Looping)
    
End If
Next Looping
tramo 
= Split(Texto, CurrentSep) 
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.