姓名:' . $row['name'] . '
' . $descs[0] . '
' . $project . '
'; } } } } $responsible_products = ''; if (preg_match('/负责产品:\s*(.*)/s', $content, $matches)) { $product_list = explode('、', trim($matches[1])); $responsible_products .= '负责产品:
'; foreach ($product_list as $product) { $product = trim($product); if (!empty($product)) { $matched_id = ''; foreach ($product_name as $pn) { if (trim($pn['name']) == $product) { $matched_id = $pn['id']; break; } } if ($matched_id) { $responsible_products .= ''; } else { $responsible_products .= '' . $product . '
'; } } } } $b = $research_projects . $responsible_products; echo ' '; } ?>