Minggu, 25 Agustus 2013

PHP Indonesia - Facebook: $mainArray = array( "jambi" => array('a' => 579, ...

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/ 
$mainArray = array( "jambi" => array('a' => 579, ...
Aug 25th 2013, 21:27, by Putra Rieskha

Putra Rieskha 9:27pm Aug 25
$mainArray = array(
"jambi" => array('a' => 579,
'b' => 579,
'c' => 579,
'd' => 799,
'e' => 799,
'f' => 579,
'g' => 579,
),
"sungai penuh" => array('a' => 579,
'b' => 357,
'c' => 357,
'd' => 357,
'e' => 357,
'f' => 579,
'g' => 357,
)
)

array_push($mainArray['jambi']['a'],579);

pertanyaannya,array_push nya kok error ya? saya mau nambahin nilai pada index ['jambi']['a']

terima kasih

Gembel Berkelas 9:40pm Aug 25
Array_push kan buat masukin value ke dalam array,,,

Liat deh :

$mainArray['jambi']['a'] value nya adalah 579 integer (jelas bukan array)

Putra Rieskha 9:42pm Aug 25
$mainArray = array(
"jambi" => array('a' => array(579))
)

dibikin kayak gitu ya bro harusnya?

Gembel Berkelas 9:43pm Aug 25
iya

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