
03/08/2002, 08:18
|
O_O | | Fecha de Ingreso: enero-2002 Ubicación: Santiago - Chile
Mensajes: 34.417
Antigüedad: 23 años, 2 meses Puntos: 129 | |
Re: como buscar y borrar de un txt?? De un "txt" exactamente no ... para ello antes tendras que obtener tu "txt" en un string (cadena de caracteres) o en un array (arreglo, linea a linea y recorrerlo) .. para luego aplicarle la funcion str_replace()
Con funciones como fopen() .. lees en "txt" en una "variable" (string):
<a href='ir.asp?http://www.php.net/manual/es/function.fopen.php' target='_blank'>http://www.php.net/manual/es/function.fo...</a>
Y con str_replace() sobre la variable obtendida puedes borrar ese caracter que no quieres:
<a href='ir.asp?http://www.php.net/manual/es/function.str-replace.php' target='_blank'>http://www.php.net/manual/es/function.st...</a>
str_replace("/","",$eltxtenlavariable);
Un saludo, |