Paste Search Dynamic
Recent pastes
array_map
  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', array_values($base));
  13. echo json_encode($certo, JSON_UNESCAPED_UNICODE);
  14.  
  15. ?>
  16.  
Parsed in 0.016 seconds