fork download
  1. <?php
  2. $array[0]='a';
  3. $array[1]='b';
  4. $array[2]='c';
  5.  
  6. for($i=0;$i<count($array); $i++)
  7. {
  8.  
  9. if($array[$i]=="a"){
  10. echo 'A:=>'.$array[$i];
  11. }
  12. elseif($array[$i]=="b"){
  13. echo 'B:=>'.$array[$i];
  14. }
  15. elseif($array[$i]=="c"){
  16. echo 'C:=>'.$array[$i];
  17. }
  18.  
  19. }// your code goes here
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
A:=>aB:=>bC:=>c