Ver Mensaje Individual
  #7 (permalink)  
Antiguo 02/12/2009, 10:06
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Prohibir caracteres raros

la misma funcion pero sin tanta cosa rara :B

Código php:
Ver original
  1. $texto = "texto con #caracteres < raros y cosas ! ?";
  2. $texto = preg_replace('/([^a-z0-9\s]*)/i','',$texto);
  3. echo $texto;
__________________
More about me...
~ @rhyudek1
~ Github