----- Original Message -----
From: "Wade Smart"
Hey, back on this issue again,
I have this number
+ 2
and its supposed to be
+2
These numbers come in a data file.
A program parses these numbers.
Its not adding a space.
I ran through count_chars and got:
10 new line
32 space
43 +
50 2
Im struggling to see how to get this + next to the 2 like this +2
instead of like + 2.
Wade
----------------------------
PHP Version 4.x.x
<?php
$handle = fopen("filename.ext", "r");
$string = "";
while(!feof($handle))
{
$string .= fread($handle, 8192);
}
fclose($handle);
$string = str_replace("+ 2", "+2", $string);
?>
PHP Version 5.x.x
<?php
$string = file_get_contents("filename.ext");
$string = str_replace("+ 2", "+2", $string);
?>