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? Quote Link to comment Share on other sites More sharing options...
trq Posted April 30, 2007 Share Posted April 30, 2007 $str = str_replace('"','',$str); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.