findParent() function returns the following array.
Array
(
[0] => Array
(
[order_item_id] => 3
[order_id] => 2
[product_id] => 77
[quantity] => 1
[price] => 268.00
)
)
I want to get 2 in [order_id].
I tried the following but it does not work.
$childlessorder = findParent($order_id);
$order_id = $childlessorder['order_id'];
Can anyone tell me how to get data in an array?