Cita:
Iniciado por sonjeux
Solucion :), pon $candena=str_replace("\""," ", $cadena_prueba) y listo!!
Brother podrias explicar mejor poque trato de sacar las comillas simples de mi texto pero nada, ayudame please tengo esta funcion
cheka
Código PHP:
function elimina_acentos($texto)
{
$texto = str_replace("á","a",$texto);
$texto = str_replace("é","e",$texto);
$texto = str_replace("í","i",$texto);
$texto = str_replace("ó","o",$texto);
$texto = str_replace("ú","u",$texto);
$texto = str_replace('"',' ',$texto);
$texto = str_replace(",","-",$texto);
$texto = str_replace(".","-",$texto);
$texto = str_replace("¿","-",$texto);
$texto = str_replace("?","-",$texto);
$texto = str_replace("<br>","-",$texto);
$texto = str_replace("<BR>","-",$texto);
$texto = str_replace("<br />","-",$texto);
$texto = str_replace("</br>","-",$texto);
$texto = str_replace("<p>","-",$texto);
$texto = str_replace("</p>","-",$texto);
$texto = str_replace("<b>","-",$texto);
$texto = str_replace("</b>","-",$texto);
$texto = str_replace("</ br>","-",$texto);
$texto = str_replace("<br />","-",$texto);
return $texto;
}
Borra todo lo que dice, pero no las comillas simples, grcias por tu respuesta