Quick question,
When I run the code below I get an undefined index error for the array. If I define all the indexes I have no problem making it work correctly. I thought writing it like I did below would define the indexes as they are needed. What am I doing wrong?
Thanks for looking,
$call_data = array();
if($call_segment['did_digits'] == '3300'){
//Check if call was answered
if($call_segment['answered'] == 'No'){
$call_data['3300']['abandoned'] ++;
}
else{
if(in_array($call_segment['finished_on'],$phoneroom_ext)){
$call_data['3300']['phoneroom'] ++;
}
elseif(in_array($call_segment['finished_on'],$anoka_ext)){
$call_data['3300']['store'] ++;
}
}
}