DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php add to existing associative array
$a1
=
[
'aa'
=>
'123'
,
'bb'
=>
'454'
]
;
$a1
=
array_merge
(
$a1
,
[
'a'
=>
1
,
'b'
=>
2
]
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#add
#existing
#associative
#array
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit