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


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

But not both at the same time.

1

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