Jump to content


Photo

php double quotes - Help!!


  • Please log in to reply
1 reply to this topic

#1 jnoempire

jnoempire
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 17 July 2006 - 06:13 PM

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



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 06:14 PM

Try this:
$notes = str_replace('"', '', $notes);





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users