RE: [PHP] Single quote
| From: | Steve Brett | Date: | Fri, 06 Jul 2001 09:31:22 +0000 |
| Subject: | RE: [PHP] Single quote | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56469@lists.php.net to get a copy of this message | ||
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:andreas.felder@felderweb.ch]
> Sent: 06 July 2001 10:29
> To: php-general@lists.php.net
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>