Richard Korts
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It DID work, I just realized, based on your comment that in the database I don't have the trailing ; after the html code.