zá yǒng yī bǎi shǒu gōng sūn hóng
杂咏一百首·公孙弘
jí lì pái shū àn, lián piān qù bù huí.
极力排舒黯,联翩去不回。
wéi yīng dāo bǐ lì, shí dé dào qiáo cái.
惟应刀笔吏,时得到翘材。
极力排舒黯,联翩去不回。惟应刀笔吏,时得到翘材。
#1253 | <?php |
#1254 | $sentence = $gdata['title']; |
#1255 | $pattern = '/[^\p{L}\p{N}\s]/u'; |
#1256 | $cleanSentence = preg_replace($pattern, '', $sentence); |
#1257 | $characters = utf8_str_split($cleanSentence); |
#1258 | $processedChars = array(); |
#1259 | foreach ($characters as $char) { |
#1260 | if (!preg_match('/\s/', $char) && !in_array($char, $processedChars)) { |
#1261 | $processedChars[] = $char; |
#1262 | echo '<a href="/search/mid_7/' . urlencode($char) . '" class="c1" target="_blank">' . htmlspecialchars($char) . '</a> '; |