|
 |
|
สอบถามการวน loop ด้วย php แสดงค่า หน้าลูกเต๋าทุกเหตุการ |
|
 |
|
|
 |
 |
|
123456
[1,1,1]
[1,1,2]
[1,1,..]
[1,2,1]
[1,2,2]
ลองดูรูปแบบ แล้ววิเคราะห์จากรูป ควรจะ ลูป ซ้อน ลูป กี่ครั้ง
|
 |
 |
 |
 |
Date :
2019-05-28 07:22:13 |
By :
Chaidhanan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วคับขอบคุณที่แนะแนวทาง
<?php
$num =1;
for( $i=1; $i<7; $i++ )
{
for( $j=1; $j<7; $j++)
{
for( $n=1; $n<7; $n++)
{
echo $num."). ".$i.$j.$n."<br>";
$num++;
}
}
}
?>
|
 |
 |
 |
 |
Date :
2019-05-28 15:38:48 |
By :
828899737459956 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
Load balance : Server 04
|