I'm getting a PHP
"Notice: Undefined offset: 1" notice for the following on line 6,
does anyone know why this is occurring and how I might fix it?
$data=explode("\n",$header);
$myarray['status']=$data[0];
array_shift($data);
foreach($data as $part){
$middle=explode(": ",$part);
$myarray[trim($middle[0])] = trim($middle[1]);
}