Sabtu, 26 Oktober 2013

PHP Indonesia - Facebook: [help]gan, gimana cara mengambil setiap value arra...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Book your hotel early for a discount!

You can reap the rewards with great discounts at participating Pullman, M Gallery, Grand Mercure, Novotel, Mercure, ibis and Formule 1 hotels.
From our sponsors
[help]gan, gimana cara mengambil setiap value arra...
Oct 27th 2013, 04:44, by Rere Saputra

Rere Saputra 4:44am Oct 27
[help]gan, gimana cara mengambil setiap value array yang tidak sama?
kondisi:
1. jika nilainya sama maka ambil indeks yang paling besar
2. jika nilainya sama dan indeksnya sama paling besar ambil kedua-duanya

$data = Array(Array
("1" => "12306")
, Array
("0" => "12106")
,Array
("1" => "12770")
,Array
("3" => "12770")
,Array
("3" => "12306")
,Array
("3" => "12770")
);

hasilnya seperti berikut:
Array
(
[1] => Array
(
[0] => 12106
)

[3] => Array
(
[3] => 12770
)

[4] => Array
(
[3] => 12306
)

[5] => Array
(
[3] => 12770
)

)

mohon bantuan gan

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar