I want to add a Hash key/value pair to an empty array.
Here is how I am trying to do it, however I am getting an error:
Parse error: syntax error, unexpected T_DOUBLE_ARROW
Here is my code:
$key = (string)$degree->f[0];
$value = (string)$degree->f[1];
$SDP_ID2CohortMap[] = ( $key => $value );
But not both at the same time.