您的位置:首页技术文章
文章详情页

请教包括一维、二维数组的遍历问题

【字号: 日期:2022-06-02 14:46:00浏览:52作者:猪猪

问题描述

请教包括一维、二维数组的遍历问题

Array

(

[8900] => A

[8898] => D

[8733] => B

[8799] => C

[8933] => A

[8827] => C

[8854] => C

[8786] => A

[8738] => B

[8880] => B

[8835] => A

[8750] => D

[8760] => D

[8853] => A

[8863] => A

[8806] => D

[8766] => A

[8864] => D

[8896] => A

[8874] => A

[8828] => C

[8732] => D

[8925] => B

[8779] => B

[8895] => B

[8843] => B

[8873] => B

[8744] => C

[8731] => D

[8856] => B

[8969] => Array

(

[0] => A

[1] => B

[3] => D

)

[9051] => Array

(

[1] => B

[2] => C

)

[9059] => Array

(

[0] => A

[2] => C

[3] => D

)

[9032] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[8953] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[8960] => Array

(

[0] => A

[1] => B

[3] => D

)

[9110] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[9084] => Array

(

[0] => A

[1] => B

[2] => C

)

[9044] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[8961] => Array

(

[0] => A

[1] => B

[3] => D

)

[9023] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[9098] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[8976] => Array

(

[0] => A

[1] => B

[2] => C

[3] => D

)

[9102] => Array

(

[1] => B

[2] => C

)

[8972] => Array

(

[0] => A

[1] => B

[2] => C

)

[8968] => Array

(

[0] => A

[2] => C

)

[8997] => Array

(

[0] => A

[3] => D

)

[9080] => Array

(

[0] => A

[2] => C

)

[9029] => Array

(

[0] => A

[1] => B

)

[9091] => Array

(

[0] => A

[1] => B

[2] => C

)

[9240] => A

[9182] => A

[9227] => A

[9146] => B

[9190] => A

[9139] => B

[9138] => B

[9143] => A

[9279] => A

[9232] => A

)

问题解答

回答1:

最好能将第一部分的一维数组、第二部分的二维数组、第三部分的一维数组分开遍历。不胜感激!

相关文章: