WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Adding an array to an element within an array

charity

New member

0

0%

Status

Offline

Posts

50

Likes

0

Rep

0

Bits

255

4

Months of Service

0%
Greetings. I currently have an array, $arr = [ 'Id' => '1', 'Name' => 'sadiq', 'List' => [] ]. As you can see, 'List' is an array. I want to add a separate array to this list. How can I do this? My other array is $arr2 = [ 'Letter' => 'c', 'Color' => 'red' ].
 

249

6,622

6,642

Top