Home >Backend Development >PHP Tutorial >帮忙看看哪里错了?没发觉啊

帮忙看看哪里错了?没发觉啊

WBOY
WBOYOriginal
2016-06-23 14:13:24941browse

$aa;
$names [0]=$_POST['a1'];
$names [1]=$_POST['a2'];

for($i=0; $i    if($names[$i] !="0" ){
       if($i==0){
         $aa ='紫色 '.$names[$i].'件-';}
     esleif($i==1){
           $aa .='-玫红 '.$names[$i].'件-';}
  }
}

错误信息:Parse error: syntax error, unexpected '{' in 

说的是 esleif($i==1){
这行代码错误


回复讨论(解决方案)

else打错了,应该是elseif

眼花了!!!!!!!!!!!!!

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