为何这样总是显示PHP Notice“Use of undefined constant orange - assumed 'orange' in index.php on line 7”?
<?php //创建一个关联数组,关联数组的键“orange”,值是“橘子” $fruit = array( 'applp' => "苹果", 'orange' => "橘子"); print_r($fruit); echo $fruit[orange] ?>
<?php //创建一个关联数组,关联数组的键“orange”,值是“橘子” $fruit = array( 'applp' => "苹果", 'orange' => "橘子"); print_r($fruit); echo $fruit[orange] ?>
2018-12-03
举报