- array_column: documentation ( source)
- print_r: documentation ( source)
<?php
$story = [
'documents' => [
[
'authors' => [
['id' => 2411]
]
]
]
];
print_r(array_column($story['documents']));