string stripslashes (string str)
Returns a string with backslashes stripped off. (\' becomes ' and so on.)
Double backslashes are made into a single backslash.
Steve
> -----Original Message-----
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 10:29
> To: [EMAIL PROTECTED]
> Subject: [PHP] Single quote
>
>
> 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.
>
> Who can help?
> Andy.
>
>
>
> --
> 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]
>
--
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]