我必须找到两个在URL中作为参数'str1'和'str2'传递的字符串,并满足这些条件?
if($_GET['str1'] !== $_GET['str2'] and $_GET['str1'] and $_GET['str2'])
{
$hash1 = hash('sha256', $salt . $_GET['str1']);
$hash2 = hash('sha256', $salt . $_GET['str2']);
if($hash1 === $hash2) {
#print str1 and str2
}
}
Run Code Online (Sandbox Code Playgroud)
我将如何查找?