$arr = array();
foreach(preg_split('/(@+)/', $str, -1, PREG_SPLIT_DELIM_CAPTURE) as $t) {
if($t == '@') arr[] = ''; else arr[count(arr) - 1] += $t;
}