Why does php insert backslash while replacing double quotes

后端 未结 4 756
长发绾君心
长发绾君心 2021-01-21 21:10

I\'m wondering why php adds a backslash when i remove double quotes.




        
4条回答
  •  隐瞒了意图╮
    2021-01-21 21:30

    User input gets escaped by magic quotes.

    http://www.php.net/manual/en/function.get-magic-quotes-gpc.php

    Elegant weapons for a more... civilized age.

提交回复
热议问题