这是我的代码...
<?php
include("db.php");
$team_id=$_GET['team_id'];
$sql1=mysql_query("select members from team where team_id='$team_id'");
$sql=mysql_query("select user_id from users where school_id= '1'");
while($array=mysql_fetch_assoc($sql))
{
$x[] = $array['user_id'];
}
echo "<hr/>";
foreach($x as $tem){
echo $tem;
echo " ";
}
echo "</br>";
$row1=mysql_fetch_array($sql1);
$member=unserialize($row1['members']);
echo array_diff_assoc($x ,$member);
echo "</br>";
foreach($member as $tem){
echo $tem;
echo " ";
}
?>
我收到的输出为
1 5 11 12 13 14 15 16 17 18 19 20
Array
15 16 17 18 19 20
我不知道为什么我收到喜欢Array
。我想收到不同的值
1 5 11 12 13 14