<?php
$assoc_arr =
array("second" => array(
array("position" => 4,
"content" => "Valiant"),
array("position" => 5,
"content" => "Hail")
),
"first" => array(
array("position" => 0,
"content" => "Hail"),
array("position" => 3,
"content" => "Victors"),
array("position" => 2,
"content" => "the"),
array("position" => 1,
"content" => "to")
)
);
$column = array_column($assoc_arr, 'content');
print_r($column);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/1Gshq
function name: (null)
number of ops: 10
compiled vars: !0 = $assoc_arr, !1 = $column
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > ASSIGN !0, <array>
21 1 INIT_FCALL 'array_column'
2 SEND_VAR !0
3 SEND_VAL 'content'
4 DO_ICALL $3
5 ASSIGN !1, $3
22 6 INIT_FCALL 'print_r'
7 SEND_VAR !1
8 DO_ICALL
9 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
163.12 ms | 1394 KiB | 17 Q