![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 500 Pomógł: 1 Dołączył: 29.09.2009 Ostrzeżenie: (0%) ![]() ![]() |
Cześć, chciałbym połączyć te dwie tablice
Aby wynikiem było Kod ['parameters' => ['template' => 'default', 'color' => '#fff']] array_merge($ar1, $ar2): Kod array(1) { ["parameters"]=> array(1) { ["color"]=> string(4) "#fff" } } array_merge($ar2, $ar1): Kod array(1) { ["parameters"]=> array(2) { ["template"]=> string(7) "default" ["color"]=> string(4) "#000" } } $ar1 + $ar2: Kod array(1) {
["parameters"]=> array(2) { ["template"]=> string(7) "default" ["color"]=> string(4) "#000" } } |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 342 Pomógł: 23 Dołączył: 20.01.2011 Skąd: Chełm Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 06:56 |