When i call API i found this array object "online_bill_list" object is unknown to me. Please see details.
stdClass Object
(
[online_bill_list] => stdClass Object
(
[tbl_bill] => stdClass Object
(
[id] => 2081804
[ClientID] => 01-001-0287-00
[holdingNo] => 01-001-0287-00
[billno] => 01-001-0287-0032017
[date_month] => 2017-03-01T00:00:00
[unit] => 0.0000
[others] => 0.0000
[fine] =>
[due] =>
[bill] => 250.0000
[netbill] => 255.0000
[payment_date] => 2017-04-30T00:00:00
[inserted_date] => 2017-04-18T00:00:00
)
)
)
I want to convert this array in a single array object.
[tbl_bill] => stdClass Object
(
[id] => 2081804
[ClientID] => 01-001-0287-00
[holdingNo] => 01-001-0287-00
[billno] => 01-001-0287-0032017
[date_month] => 2017-03-01T00:00:00
[unit] => 0.0000
[others] => 0.0000
[fine] =>
[due] =>
[bill] => 250.0000
[netbill] => 255.0000
[payment_date] => 2017-04-30T00:00:00
[inserted_date] => 2017-04-18T00:00:00
)
$single = $initial->online_bill_list->tbl_bill