jù
句
chū qiū shuāng, jià qián kě,
出秋霜,价钱可,
yíng de bō huī jiān nòng huǒ, chàng shā wǒ.
赢得拨灰兼弄火,畅杀我。
出秋霜,价钱可,赢得拨灰兼弄火,畅杀我。
#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> '; |