alexa-tracking
Selamat Guest, Agan dapat mencoba tampilan baru KASKUS Masih Kangen Tampilan Sebelumnya
Kategori
Kategori
Home / FORUM / All / Tech / ... / Programmer Forum /
[ASK] Array Bersarang
1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/53a6a0a7529a4571098b46f2/ask-array-bersarang

[ASK] Array Bersarang

Gan..sorry..newbie mau nanya soal array
Misal nya ada array seperti ini :
[myorder] => stdClass Object
(
[order_id] => 5659887
[data] => Array
(
[0] => stdClass Object
(
[expire] => 60
[order_detail_id] => 511339
[order_type] => event
[order_name] => KFC ADU BINTANG 2 DIVA - DIVO
[order_name_detail] => Tribune II
[order_detail_status] => active
[detail] => stdClass Object
(
[order_detail_id] => 511339
[tiket_barcode] => 4454122942797
[qty] => 1
[sell_rate_price] => 440000.00
[sell_rate_currency] => IDR
[tiket_seating] =>
[startdate] => 2013-09-17 00:00:00
[enddate] => 2099-09-17 22:00:00
[event_type] => A
)

[order_photo] => [url]image/gambar[/url]
[order_icon] => h3d
[tax_and_charge] => 10342.22
[subtotal_and_charge] => 450342.22
)

)


nampilin object array nya kan gini :

foreach($trace->myorder->data as $rows)
{
$row=(array)$rows;
echo "row[order_name]";
}

trus klo mau nampilin nilai [detail] nya gmn gan

misal nya : [sell_rate_price]

Mohon Bantuan nya gan

thx sebelum nya gan
Diubah oleh addinka
Beri apresiasi terhadap thread ini Gan!


×
GDP Network
© 2018 KASKUS, PT Darta Media Indonesia. All rights reserved
Ikuti KASKUS di