robert_gsfame Posted September 28, 2010 Share Posted September 28, 2010 I have this $string=<span style=\"font-weight: bold;"> how can i replace the \" with " only i try this but didnt work str_replace("\\\"","\"",$string) Quote Link to comment Share on other sites More sharing options...
Chris92 Posted September 28, 2010 Share Posted September 28, 2010 I don't think you need to? try this: $str = "<span style=\"font-weight: bold\">"; echo str_replace( '\"', '"', $str ); Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted September 28, 2010 Author Share Posted September 28, 2010 thx a lot chris92! works well! 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.