如何判断一个php数组是否为空?我尝试了不同的方法,但它永远不会echo "no content";
while($row = mysql_fetch_array($result))
{
if(count($row['link']))
{
echo '<a id="link_' . $row['Id'] . '" href="' . $row['link'] . '" data="/short_info.php?id=' . $row['Id'] . '/">' . $row['title'] . '</a><div class="in...
}
else
{
echo "no content";
}
}