Re: Single quote
| From: | Alexander Deruwe | Date: | Fri, 06 Jul 2001 11:36:32 +0000 |
| Subject: | Re: Single quote | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56470@lists.php.net to get a copy of this message | ||
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