日期:2014-05-17 浏览次数:20415 次
<?php
$colors = array('red'=>'hongse', 'blue'=>'lanse', 'green'=>'lvse', 'yellow'=>'huangse');
foreach ($colors as $color) {
echo "Do you like $color['red']?\n";
?>
$colors = array('red'=>'hongse', 'blue'=>'lanse', 'green'=>'lvse', 'yellow'=>'huangse');
foreach ($colors as $color) {
echo "Do you like $color?\n";
}