how to judge the end of a array?
| From: | forestwater | Date: | Mon, 20 Nov 2000 09:43:44 +0000 |
| Subject: | how to judge the end of a array? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26222@lists.php.net to get a copy of this message | ||
I use the following source to judge the end of a array
while ($my_array[$i++][$j]!=null)
for($j=1;$j<=5;$j++)
{
echo($my_array[$i][$j]);
echo("\n<br>");
}
but the IE refering:"Undefined offset: 6 "
so how can judge the end of a array
thanks
______________________________________
===================================================================
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä http://mail.sina.com.cn
ÐÂÀËÍÆ³ö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ
http://sms.sina.com.cn/