while() 通常和 list(),each()配合使用。 $colors= array(\'red\',\'blue\',\'green\',\'yellow\'); while(list($key,$val)= each($colors)) { echo "$key=> $val<br />"; } 相关文章: 2022-12-23 2022-12-23 2022-02-08 2021-12-28 2021-08-01 2022-12-23 2021-12-28 2021-10-31