PHPize Online / SQLize Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $arr = [ [ 'name' => 'Альбина', 'age' => '37' ], [ 'name' => 'Марина', 'age' => '47' ], [ 'name' => 'Лера', 'age' => '27' ], [ 'name' => 'Эля', 'age' => '36' ], [ 'name' => 'Гуля', 'age' => '38' ], [ 'name' => 'Лена', 'age' => '20' ] ]; $ages = array_column($arr, 'age'); print_r($ages);
Show:  
Copy Clear