这里有任何东西会逃脱字符串(PHP)

Bel*_*ish 0 php

$_GET['search'] = ucfirst(strtolower(str_replace("_"," ",urldecode($_GET['search']))));
Run Code Online (Sandbox Code Playgroud)

由于某种原因,它在字符串中添加斜杠类似于mysqL_escape_string,任何人都有任何想法会导致它?

Sar*_*raz 5

你很可能已经magic_quotes_gpc进入onphp.ini.如果你想避免这种情况,请按以下方式进行检查:

if (get_magic_quotes_gpc())
{
   $mytext = stripslashes($your_text);
}

// and your further code....
Run Code Online (Sandbox Code Playgroud)