I have example array below:
Array
(
    [0] => Array
        (
            [name] => 'item-1'
            [type] => typeA
            [ids] => Array(123, 456, 999)
        )
    [1] => Array
        (
            [name] => 'item-2'
            [type] => typeA
            [ids] => Array(555, 4444, 666)
        )
    [2] => Array
        (
            [name] => 'item-3'
            [type] => typeB
            [ids] => null
        )
    [3] => Array
        (
            [name] => 'item-4'
            [type] => typeB
            [ids] => Array(555)
        )
 )
As an example, I want to search the array for all entries where type is typeA or id = 555. I just need to retrieve the name fields (or at least the keys and from there the names). In the hypothetical example, the search would result in item-1, item-2 and item-4
I tried a few different PHP functions. For example
$keys = array_keys(array_column($parent_array, 'type'), 'typeA');
The above works for retrieving keys when search is based on the [type] field. But doesn't work for [ids].
Any suggestions?
 
    