fork(1) download
  1. <?php
  2.  
  3. $c = 0;
  4. $POST = array( 'Resposta A' , 'Resposta B' , 'Resposta C' , 'Resposta D' );
  5.  
  6. foreach( array( 'A' , 'B' , 'C' , 'D' ) as $listar => $valor)
  7. {
  8. $respostas[] = $POST[$c];
  9. $c++;
  10. }
  11.  
  12. echo implode( ', ' , $respostas );
  13.  
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Resposta A, Resposta B, Resposta C, Resposta D