我如何从PHP中的字符串中删除双引号?

I've been trying to solve this but no luck. This is my code.

       $replace1 =str_replace('hreflang=\"'.$arr['variantslang1hid'].'\"     lang=\"'.$arr['variantslang1hid'].'\"','hreflang=\"'.$arr['variantslang1'].'\" lang=\"'.$arr['variantslang1'].'\"',$replace1);

It should replace but no. I'm not escaping "" properly. How can i solve this? Help much appreciated!

查看全部
doude1917
doude1917
2012/02/22 04:42
  • escaping
  • string
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复