[Solved] What is the proper syntax to add a hash key/value pair to an array in PHP? [closed]

[ad_1]

$SDP_ID2CohortMap = array( $key => $value );
$SDP_ID2CohortMap[$key] = $value;

But not both at the same time.

1

[ad_2]

solved What is the proper syntax to add a hash key/value pair to an array in PHP? [closed]