刪除多維矩陣不知哪裡有錯誤

edited 八月 2014 in PHP新手區
<code>
<head>
<title>
</title>
</head>
<meta http-equiv="content-type" content="text/html;charset=utf8">

<html>
刪除多維陣列<br>
<?php
$country[10]=tw;
$country[11]=usa;
$country[20]=my;
$country[31]=ch;
$key = key($country);
$value = current($country);
reset($country);
while(list($key,$value)=each($country)){
if($country[$key]=="my") unset($country[$key]);
}
?>

</html>
</code>
我找不出錯誤,執行出現錯誤訊息. 謝謝

評論

Sign In or Register to comment.