Posted by windandwaves on 11/22/06 23:24
Hi Gurus
I want to replace null values with a space and line breaks with a |
symbol in a file. I have written the following function:
function replace_characters($path, $file) {
$str = file_get_contents($path.$file);
$str = str_replace("\r\n", "jjjjjjjjjjjjjj", $str);
file_put_contents($path.$file);
}
How do I replace the null value
TIA
Nicolaas
Navigation:
[Reply to this message]
|