Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我的php代码转换了一些字符_Php_Json_Database_Url - Fatal编程技术网

我的php代码转换了一些字符

我的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

我得到了一个带有URL列的数据库。 问题是,在使用我的php代码后,页面给出的结果是我的url
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()
函数。