如果有,也存在这样的情况:
Array (
[Example1] => Array
(
[0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] =>
)
[Example2] => Array
(
[0] => [1] => [2] => [3] => [4] =>
[5] => [6] => [7] => [8] => [9] =>
[10] => [11] => [12] => [13] => [14] =>
[15] => [16] => [17] => [18] => [19] =>
[20] => [21] => [22] => [23] => [24] =>
[25] => [26] => [27] => [28] => [29] =>
[30] => [31] => [32] => [33] => [34] =>
[35] => [36] => [37] => [38] => [39] =>
[40] => [41] => [42] => [43] => [44] =>
[45] => [46] => [47] => [48] => [49] =>
[50] => [51] => [52] => [53] => [54] =>
[55] => [56] => [57] => [58] => [59] =>
[60] => [61] => [62] => [63] => [64] =>
[65] => [66] => [67] => [68] => [69] =>
[70] => [71] => [72] => [73] => [74] =>
[75] => [76] => [77] => [78] => [79] =>
[80] => [81] => [82] => [83] => [84] =>
[85] => [86] => [87] => [88] => [89] =>
[90] => [91] => [92] => [93] => [94] =>
[95] => [96] => [97] => [98] => [99] =>
[100] => [101] => [102] => [103] => [104] =>
[105] => [106] => [107] => [108] => [109] =>
[110] => [111] => [112] => [113] => [114] =>
[115] => [116] => [117] => [118] => [119] =>
[120] => [121] => [122] => [123] => [124] =>
[125] => [126] => [127] => [128] => [129] =>
[130] => [131] => [132] => [133] => [134] =>
)
)
现有2个主要阵列(Example1 & Example2),在这些阵列中还有1个。 我愿知道,我只能说一阵像“Example2”这样一阵,这样它就只印成一纸,忽视了“Example1”
请注意,可能有两个以上的主要阵列。
如果用这一阵列的话,我想要缩小菜单,这里我有:
$__selectGroups = ;
foreach ($groups as $key => $options)
{
sort($options);
if ($key !== )
{
$__selectGroups .= <optgroup label=" .$key. "> ;
}
$__selectGroups .= implode("
", $options);
if ($key !== )
{
$__selectGroups .= </optgroup> ;
}
}
我怎么能够告诉我们,只用实例2来缩小这一差距,而忽视其他现象?