

TS
addinka
[ASK]
Agan agan sekalian saya ingin bertanya tentang json_decode
jadi saya melakukan request ke server
kemudian di respon oleh server dengan outpout seperti ini :
stdClass Object ( [diagnostic] => stdClass Object ( [status] => 200 [elapsetime] => 0.5399 [memoryusage] => 15.01MB [confirm] => success [lang] => en [currency] => IDR ) [output_type] => json [required] => stdClass Object ( [separator] => stdClass Object ( [mandatory] => 1 [type] => text [example] => [FieldText] => Contact Person Information [category] => separator ) [conSalutation] => stdClass Object ( [mandatory] => 1 [type] => combobox [example] => Mr [FieldText] => Title [category] => contact [resource] => Array ( [0] => stdClass Object ( [id] => Mr [name] => Mr ) [1] => stdClass Object ( [id] => Mrs [name] => Mrs ) [2] => stdClass Object ( [id] => Ms [name] => Ms ) ) ) [conFirstName] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => First Name [category] => contact ) [conLastName] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Wacob [FieldText] => Last Name [category] => contact ) [conPhone] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => Phone Number [category] => contact ) [separator_adult1] => stdClass Object ( [mandatory] => 1 [type] => text [example] => [FieldText] => Adult Passenger 1 [category] => separator ) [firstnamea1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => First Name [category] => adult1 ) [lastnamea1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => wacob [FieldText] => Last Name [category] => adult1 ) [ida1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => 143243434323443 [FieldText] => ID Card Number (KTP/Passport/Other) [category] => adult1 ) [titlea1] => stdClass Object ( [mandatory] => 1 [type] => combobox [example] => Mr [FieldText] => Title [category] => adult1 [resource] => Array ( [0] => stdClass Object ( [id] => Mr [name] => Mr ) [1] => stdClass Object ( [id] => Mrs [name] => Mrs ) [2] => stdClass Object ( [id] => Ms [name] => Ms ) ) ) ) [departures] => stdClass Object ( [flight_id] => 28636852 [airlines_name] => SRIWIJAYA [flight_number] => SJ-230/SJ-230 [price_value] => 894900.00 [count_adult] => 1 [count_child] => 0 [count_infant] => 0 [timestamp] => 2013-11-13 10:43:39 [price_adult] => 894900.00 [price_child] => 0.00 [price_infant] => 0.00 [simple_departure_time] => 12:30 [simple_arrival_time] => 17:05 [stop] => 1 Stop [long_via] => Yogyakarta (JOG) [full_via] => CGK - JOG (12:30 - 13:45), JOG - BPN (14:15 - 17:05) [need_baggage] => 0 [duration] => 3 h 35 m [image] => http://www.master18.tiket.com/images...riwijaya_2.jpg[flight_infos] => stdClass Object ( [flight_info] => Array ( [0] => stdClass Object ( [flight_number] => SJ-230 [departure_city] => CGK [arrival_city] => JOG [simple_departure_time] => 12:30 [simple_arrival_time] => 13:45 ) [1] => stdClass Object ( [flight_number] => SJ-230 [departure_city] => JOG [arrival_city] => BPN [simple_departure_time] => 14:15 [simple_arrival_time] => 17:05 ) ) ) ) [login_status] => true [id] => 19924748 [token] => 15462ff78c9648dc89e297e7e1eb4fe3 )
yg jadi pertanyaan gmn cara nya agar sy dpat memanggil salah satu field saja.
Thanks before
jadi saya melakukan request ke server
Quote:
kemudian di respon oleh server dengan outpout seperti ini :
stdClass Object ( [diagnostic] => stdClass Object ( [status] => 200 [elapsetime] => 0.5399 [memoryusage] => 15.01MB [confirm] => success [lang] => en [currency] => IDR ) [output_type] => json [required] => stdClass Object ( [separator] => stdClass Object ( [mandatory] => 1 [type] => text [example] => [FieldText] => Contact Person Information [category] => separator ) [conSalutation] => stdClass Object ( [mandatory] => 1 [type] => combobox [example] => Mr [FieldText] => Title [category] => contact [resource] => Array ( [0] => stdClass Object ( [id] => Mr [name] => Mr ) [1] => stdClass Object ( [id] => Mrs [name] => Mrs ) [2] => stdClass Object ( [id] => Ms [name] => Ms ) ) ) [conFirstName] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => First Name [category] => contact ) [conLastName] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Wacob [FieldText] => Last Name [category] => contact ) [conPhone] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => Phone Number [category] => contact ) [separator_adult1] => stdClass Object ( [mandatory] => 1 [type] => text [example] => [FieldText] => Adult Passenger 1 [category] => separator ) [firstnamea1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => Jane [FieldText] => First Name [category] => adult1 ) [lastnamea1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => wacob [FieldText] => Last Name [category] => adult1 ) [ida1] => stdClass Object ( [mandatory] => 1 [type] => textbox [example] => 143243434323443 [FieldText] => ID Card Number (KTP/Passport/Other) [category] => adult1 ) [titlea1] => stdClass Object ( [mandatory] => 1 [type] => combobox [example] => Mr [FieldText] => Title [category] => adult1 [resource] => Array ( [0] => stdClass Object ( [id] => Mr [name] => Mr ) [1] => stdClass Object ( [id] => Mrs [name] => Mrs ) [2] => stdClass Object ( [id] => Ms [name] => Ms ) ) ) ) [departures] => stdClass Object ( [flight_id] => 28636852 [airlines_name] => SRIWIJAYA [flight_number] => SJ-230/SJ-230 [price_value] => 894900.00 [count_adult] => 1 [count_child] => 0 [count_infant] => 0 [timestamp] => 2013-11-13 10:43:39 [price_adult] => 894900.00 [price_child] => 0.00 [price_infant] => 0.00 [simple_departure_time] => 12:30 [simple_arrival_time] => 17:05 [stop] => 1 Stop [long_via] => Yogyakarta (JOG) [full_via] => CGK - JOG (12:30 - 13:45), JOG - BPN (14:15 - 17:05) [need_baggage] => 0 [duration] => 3 h 35 m [image] => http://www.master18.tiket.com/images...riwijaya_2.jpg[flight_infos] => stdClass Object ( [flight_info] => Array ( [0] => stdClass Object ( [flight_number] => SJ-230 [departure_city] => CGK [arrival_city] => JOG [simple_departure_time] => 12:30 [simple_arrival_time] => 13:45 ) [1] => stdClass Object ( [flight_number] => SJ-230 [departure_city] => JOG [arrival_city] => BPN [simple_departure_time] => 14:15 [simple_arrival_time] => 17:05 ) ) ) ) [login_status] => true [id] => 19924748 [token] => 15462ff78c9648dc89e297e7e1eb4fe3 )
yg jadi pertanyaan gmn cara nya agar sy dpat memanggil salah satu field saja.
Thanks before
Diubah oleh addinka 13-11-2013 11:15
0
737
1


Komentar yang asik ya
Urutan
Terbaru
Terlama


Komentar yang asik ya
Komunitas Pilihan