fork download
  1. <?php
  2. $base = [
  3. [
  4. 'name' => 'Rodrigo',
  5. 'age' => '40'
  6. ],
  7. [
  8. 'name' => 'FabĂ­ola',
  9. 'age' => '38'
  10. ]
  11. ];
  12. $certo = array_map('array_values', $base);
  13. echo json_encode($certo, JSON_UNESCAPED_UNICODE);
  14. ?>
  15.  
Success #stdin #stdout 0.02s 26260KB
stdin
Standard input is empty
stdout
[["Rodrigo","40"],["Fabíola","38"]]