Usage of getOrderDetailById()
<?php $order_detail = getOrderDetailById(101); //to get the detail of order ID #101 print_r($order_detail);