php问题,Warning: implode() [function.implode]

Warning: implode() [function.implode]: Invalid arguments passed in MyID.php on line 1524

No configuration found, you shouldn't access this file directly.

MyID.php的1524行及前后的内容:

echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
">
<html>
<head>
<title>phpMyID</title>
<link rel="openid.server" href="' . $profile['req_url'] . '" />
<link rel="openid.delegate" href="' . $profile['idp_url'] . '" />
' . implode("\n", $profile['opt_headers']) . '
<meta name="charset" content="' . $charset . '" />
<meta name="robots" content="noindex,nofollow" />
</head>
<body>
<p>' . $message . '</p>
</body>
</html>
';
1524行:' . implode("\n", $profile['opt_headers']) . '
最新回答
旧情人怎能变知己

2023-07-28 06:06:31

这个函数要求第二个参数是数组,这样才能使用第一个参数把数组里的所有元素链接起来组成一个字符串,如果第二个元素师多维数组也出问题
青柠香味

2021-01-26 01:42:35

第二个参数$profile['opt_headers']打印出来看下,应该不是数组。