fork download
  1. <?php
  2.  
  3. $meuArray = array( 1, 2, 3 );
  4. $result="";
  5. foreach( $meuArray as $valor ) {
  6. $result .= $valor;
  7. }
  8. echo $result; // 123
Success #stdin #stdout 0.02s 23496KB
stdin
Standard input is empty
stdout
123