if you're trying to read lines from a file, eliminating backslashes as you go, there is an easier way. Try:
$fd = fopen ("xmlholder.tmp", "r");
$max_line_length = 4096;
while ( !feof ($fd) ) {
$cur_line = fgets( $fd, $max_line_length );
echo "current line is: $cur_line"
$cur_line = str_replace("\\", "", $cur_line );
echo "current line without backslashes: $cur_line";
}
fclose ($fd);
also, instead of unset, you can just do $data[$i] = "";
-Jim Keller
http://www.centerfuse.net