我的php代码转换了一些字符
我得到了一个带有URL列的数据库。 问题是,在使用我的php代码后,页面给出的结果是我的url我的php代码转换了一些字符,php,json,database,url,Php,Json,Database,Url,我得到了一个带有URL列的数据库。 问题是,在使用我的php代码后,页面给出的结果是我的urlhttp://>。变成http://>。 有什么问题吗 这些斜杠用于转义mysql中的“。检索数据后,可以使用stripslahes()删除它们 $str = "A yellow fish swims in earth\'s oceans." $str = stripslashes($str); echo $str; // Outputs A yellow fish swims in earth's o
http://>。
变成http://>。
有什么问题吗 这些斜杠用于转义mysql中的
“
。检索数据后,可以使用stripslahes()
删除它们
$str = "A yellow fish swims in earth\'s oceans."
$str = stripslashes($str);
echo $str; // Outputs A yellow fish swims in earth's oceans.
` http://... 成为http://...` ..... 什么?你的问题不是很清楚,但这取决于我。然而,我真正不明白的是http://... 成为http://... 实际上是一样的??非常确定
http://...
和http://...
都是相同的。请提供一些示例,然后有人可能会提供帮助示例:“http:\/\/i.imgur.com\/u1kfgjl.jpg”使用stripslashes()
函数。