fork(6) download
  1. <?php
  2.  
  3. $array = array(
  4. "chave1" => 1,
  5. "chave2" => "dois",
  6. "chave3" => false
  7. );
  8.  
  9. foreach ($array as $chave => $valor){
  10. echo "{$chave}: {$valor}\n";
  11. }
  12.  
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
chave1: 1
chave2: dois
chave3: