変数をキー設定に変えて以後のプログラム式を短縮する練習

85
92
68

○上記表示は下記式
$result[0] = 85;
$result[1] = 92;
$result[2] = 68;

for ($i = 0; $i < 3; $i++){
print $result[$i].'<br />';
}


変数をキー設定に変えて以後のプログラム式を短縮する練習2

585
92
68
818
762
634
345
583
625
75
647
29
77
927
71
743
454
81

○上記表示は下記式
$result[0] = 585;
$result[1] = 92;
$result[2] = 68;
$result[3] = 818;
$result[4] = 762;
$result[5] = 634;
$result[6] = 345;
$result[7] = 583;
$result[8] = 625;
$result[9] = 75;
$result[10] = 647;
$result[11] = 29;
$result[12] = 77;
$result[13] = 927;
$result[14] = 71;
$result[15] = 743;
$result[16] = 454;
$result[17] = 81;
$result[18] = 832;

for ($i = 0; $i < 18; $i++){
print $result[$i].'<br />';
}




これは赤色の文字例です。

これは青色の文字例です。