记录遇到问题的点点滴滴。
$text为要高亮的源文本$keywords需要高亮的关键字<?php $text = "php multiple highlight keywords"; $keywords = ['php', 'highlight']; $highlights = []; foreach ($keywords as $word) { $...