Home  >  Article  >  Backend Development  >  怎么出错了呢?求原理

怎么出错了呢?求原理

WBOY
WBOYOriginal
2016-06-23 14:10:52907browse

<?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";}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn