Jump to content

Archived

This topic is now archived and is closed to further replies.

jnoempire

php double quotes - Help!!

Recommended Posts

Hi i have some text in a database and i need to replace the double quotes with nothing when i pull them out.

e.g need
frm db
..hello "my name " is John
when i write to screen change to
hello my name  is John

im trying to use
$notes = str_replace("\"\"","",$notes);
but for the love of god i cant seem to get it to work

sorry if this have been answered b4 ive really looked

Share this post


Link to post
Share on other sites
Try this:
[code=php:0]$notes = str_replace('"', '', $notes);[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.