我在第57行收到此错误: $password = str_replace($key, $value, $password, 1);
据我所知,我只传递变量.这是一些更多的背景:
$replace_count = 0;
foreach($replacables as $key => $value)
{
if($replace_count >= 2)
break;
if(strpos($password, $key) !== false)
{
$password = str_replace($key, $value, $password, 1);
$replace_count++;
}
}
Run Code Online (Sandbox Code Playgroud)