Heero Posted April 30, 2007 Share Posted April 30, 2007 Hey all, This seems to simple, but I can't seem to figure out how to do it. Say for sample I have this code: $string = "\"Dr\"" Now if I echoed that I would get "Dr". Now say that I want that exact same variable set to that value, but now I want it to print just Dr. Is there a function I can apply which will remove the doubles quotes? Link to comment https://forums.phpfreaks.com/topic/49252-getting-rid-of-double-quotes/ Share on other sites More sharing options...
trq Posted April 30, 2007 Share Posted April 30, 2007 $str = str_replace('"','',$str); Link to comment https://forums.phpfreaks.com/topic/49252-getting-rid-of-double-quotes/#findComment-241329 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.