Re: problem with str_replace and single quote
From: Alvaro G Vicario (alvaro_QUITAR_REMOVE_at_telecomputeronline.com)
Date: 09/16/04
- Next message: Alvaro G Vicario: "Re: How to redirect after (header) after sending an alert message"
- Previous message: Markus Elfring: "Re: String class"
- In reply to: Hugo Coolens: "Re: problem with str_replace and single quote"
- Next in thread: Chris Hope: "Re: problem with str_replace and single quote"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Sep 2004 10:14:46 +0200
*** Hugo Coolens wrote/escribió (Thu, 16 Sep 2004 09:51:28 +0200):
>> $arabic=str_replace ("'","\\'", $row[0]);
>>
> Unfortunately this does not work, I already tried that, the problem
> seems to be the first single quote in the expression.
This works fine for me (I've just tested it). Are you sure there are
actually single quote chars in your text and not only tildes like ` or ´?
-- -- Álvaro G. Vicario - Burgos, Spain -- Thank you for not e-mailing me your questions --
- Next message: Alvaro G Vicario: "Re: How to redirect after (header) after sending an alert message"
- Previous message: Markus Elfring: "Re: String class"
- In reply to: Hugo Coolens: "Re: problem with str_replace and single quote"
- Next in thread: Chris Hope: "Re: problem with str_replace and single quote"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]