On Fri, Jul 06, 2001 at 11:28:38AM +0200, Andy wrote:
> I got a data file containing this line:
>     $ 1'000'000.-
> 
> Then I read and echo this line
>     $fp = fopen ( $sFilename,"r");
>     $sData = fgets ( $fp, 1000 ) )
> 
>     echo $sData
> 
> Now what came out is
>     $ 1\'000\'000.-
> 
> I tried to get rid of these slashes with
>     ereg_replace( "\\'", "'", $sData );
> but I had no luck.
> 

Use: stripslashes($sData);
That ought to do the trick..

ad

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to