Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/06/2008, 23:37
Avatar de hawaiian050
hawaiian050
 
Fecha de Ingreso: junio-2007
Mensajes: 285
Antigüedad: 17 años, 9 meses
Puntos: 2
Alguien tiene una funcion para eliminar catacteres de los titulos ?

Hola yo estoy usando esta pero no me funciona en un 100% digamos un 30% pero bueno, alguien me podria pasar alguna mejor ?

caracteres que se no funcionan la funcion son: (),. -- --- y ?¿ !! entre otros muchos mas

Código PHP:

function limpia($str,$min 0) {
    
$str ereg_replace("[^a-zA-Z0-9.()]",' ',$str);
    return (
$min == 1) ? strtolower($str) : $str;

}

function 
Limp($text) {
static 
$acentos "áéíóúÁÉÍÓÚàèìòùÀÈÌÒÙâêîôûÂÊÎÔÛäëïöüÄËÏÖÜ";
static 
$validos "aeiouAEIOUaeiouAEIOUaeiouAEIOUaeiouAEIOU";
return 
strtr($text$acentos$validos);

desde ya muchas gracias

un saludo