Search
 
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
Name
4+3 =