<?php
$arr00 = array(1,5,7);
$arr01 = array(9,6,3,$arr00);
$arr02 = array(4,8,12,$arr01);
echo $length = count($arr00);
echo "<br />";
echo $length1 = count($arr01);
echo "<br />";
echo $length2 = count($arr02);
echo "<br />";
for($i = 0; $i < $length; $i++)
for($j = 0; $j < $i; $j++)
for($k = 0; $k < $j; $k++){
echo "<pre>";
print_r($arr02);
echo "</pre>";
}
foreach ($arr00 as $value)
{
echo $value." ";
}
foreach ($arr01 as $value1)
{
echo $value1." ";
}
foreach ($arr02 as $value2)
{
echo $value2." ";
}
通知:Array對字符串的轉換在C:\ XAMPP \ htdocs中\ mywebpage \ 3dimns.php在線路34上 陣列4 8 12 注意:Array對字符串中的C轉換:\ xampp \ htdocs \ mywebpage \ 3dimns.php on line 39 ArrayPHP通知:Array對字符串的轉換錯誤
[參考 - 這個錯誤在PHP中意味着什麼?](http://stackoverflow.com/a/24507107) - 請包括一個問題與您的問題,而不僅僅是代碼轉儲和隱含的調試請求。 – mario