<html>
<body>
$people = array("Bill", "Steve", "Mark", "David");
if (in_array("23", $people, TRUE))
{
echo "匹配已找到<br>";
}
else
{
echo "匹配未找到<br>";
}
if (in_array("Mark",$people, TRUE))
{
echo "匹配已找到<br>";
}
else
{
echo "匹配未找到<br>";
}
if (in_array(23,$people, TRUE))
{
echo "匹配已找到<br>";
}
else
{
echo "匹配未找到<br>";
}
</body>
</html>