3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( "0" => Array ( "0" => 1134, "1" => 2014, "2" => "type1" ), "1" => Array ( "0" => 1133, "1" => 2014, "2" => "type1" ), "2" => Array ( "0" => 1132, "1" => 2014, "2" => "type2" ), "3" => Array ( "0" => 1131, "1" => 2014, "2" => "type2" ), "4" => Array ( "0" => 1130, "1" => 2013, "2" => "type1" )); $type1 = array_column($arr, "type1", 1); Var_dump($type1);

preferences:
44.18 ms | 402 KiB | 5 Q