fork download
  1. <?php
  2.  
  3. $dados = array('cliente' => array('0' => array('Code' => 1, 'Name' => 'a'),
  4. '1' => array('Code' => 2, 'Name' => 'b')));
  5.  
  6. foreach ($dados['cliente'] as $cliente) {
  7. $stnCode = $cliente['Code'];
  8. $stnName = $cliente['Name'];
  9.  
  10. echo $stnCode . ":" . $stnName . "\n";
  11. }
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
1:a
2:b