Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

php str_replace

I am storing special characters like " and ' in my database as " and '.

Subsequently, I am using a package called fpdf to create a pdf; of course I want the special characters to appear as " and ' in the pdf.

I am using this: $r = str_replace(""", chr(34), $x);

It doesn't work.

Why?
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Richard Korts

ASKER

To GaryC123,

It DID work, I just realized, based on your comment that in the database I don't have the trailing ; after the html code.