PHP removing a character in a string

前端 未结 4 2116
太阳男子
太阳男子 2020-12-15 15:37

My php is weak and I\'m trying to change this string:

http://www.example.com/backend.php?/c=crud&m=index&t=care
                                   ^
         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-15 15:56

    I think that it's better to use simply str_replace, like the manual says:

    If you don't need fancy replacing rules (like regular expressions), you should always use this function instead of ereg_replace() or preg_replace().

提交回复
热议问题