I have an array and want to fill the some items depend on previous item's values:
$order = array(
'items_price' => 200,
'tax_price' => 18,
'total_price' => function () {
return $order.items_price + $order.tax_price;
})
How can I do that?