Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/02/2010, 14:34
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Jugando con cadenas

bueno hay muchas formas

la que usaria yo seria
Código PHP:
Ver original
  1. $texto = "La vida es bella.jpg";
  2. $texto = preg_match('/(.*)\.jpg/i',$texto,$matches);
  3. echo $matches[1];
__________________
More about me...
~ @rhyudek1
~ Github