Вот мой код ...
<?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