Can someone explain the 'ARRAY' feature in SNMP

Following the Documentation as follows it doesn’t list the ‘ARRAY’ feature or function thats in the original config.php file that listed as:
$config[‘snmp’][‘community’] = array(“public”);

:How do you add multiples to the array ? comma seperated ?


SNMP Details

To add devices automatically we need to know your snmp details, examples of SNMP v1, v2c and v3 are below:

// v1 or v2c
$config['snmp']['community'][] = "my_custom_community";
$config['snmp']['community'][] = "another_community";

// v3
$config['snmp']['v3'][0]['authlevel'] = 'authPriv';
$config['snmp']['v3'][0]['authname'] = 'my_username';
$config['snmp']['v3'][0]['authpass'] = 'my_password';
$config['snmp']['v3'][0]['authalgo'] = 'MD5';
$config['snmp']['v3'][0]['cryptopass'] = 'my_crypto';
$config['snmp']['v3'][0]['cryptoalgo'] = 'AES';

Configuring the communities just like the example under // v1 or v2c will add your multiple entries to the array. Those extra brackets at the end of the variable are the key. Say you want to use public first then community1 then community2 as your three community strings, the cleanest way is probably to just comment out or delete the old array line and do like the example…

#$config['snmp']['community'] = array("public");
$config['snmp']['community'][] = "public";
$config['snmp']['community'][] = "community1";
$config['snmp']['community'][] = "community2";

Appreciate the insight. Basically. Create and array and any items with get added to the array as Im taking it. Array is optional and several independent strings can be used alone or within the array.