<?php
$arr = [
10 => [
'fieldId' => 'OR',
'type' => 'T',
'value' => 'Pos',
],
11 => [
'fieldId' => 'ORStreet',
'type' => 'TEXT',
'value' => 'Postbus 52',
],
12 => [
'fieldId' => 'OR',
'type' => 'T',
'value' => 'Pos',
]
];
$index = array_flip(array_map(function($val){
return $val["fieldId"];
}, $arr));
echo $index["ORStreet"];
preferences:
15.71 ms | 402 KiB | 5 Q