I have 2 arrays:
first array of total transactions (haystack):
[0] => Array (
    [transaction_id] => 62369600431
    [invoice_number] => 37161
    )
[1] => Array (
    [transaction_id] => 62369595048
    [invoice_number] => 37346
    )
[2] => Array (
    [transaction_id] => 62369537530
    [invoice_number] => 38064
    )
Second array of select orders (needle):
[0] => Array (
    [invoice_number] => 37161
    )
[1] => Array (
    [invoice_number] => 37346
    )
My goal is to create a third array that finds all transaction_id from the first array that have a match of order_id from the second.
I have tried array_merge and array_intersect both unsuccessfully (because I don't fully understand how to use them obviously.)
 
    