/', '' ,$output); // "
" is deleted.
$output = preg_replace('/<\/li>/', '|' ,$output); // "" replace "|".
$output = preg_replace('/\|$/', '' ,$output); // "|" at the end of line is deleted.
$authors = explode('|',$output);
$item_no = 0;
foreach ($authors as $author){
$row_data = array(
'author' => $author
);
$block['contents']['item'.$item_no] = $row_data;
$item_no++;
}
$block['data_count'] = $item_no;
return $block ;
}
?>