风霜阴忽忽,天地澹悠悠。
我自操吴语,谁来问楚囚。
寂中惟灭想,达处尽忘忧。
手有韦编在,朝闻夕死休。
风霜阴忽忽,天地澹悠悠。我自操吴语,谁来问楚囚。寂中惟灭想,达处尽忘忧。手有韦编在,朝闻夕死休。
#1257 | <?php |
#1258 | $sentence = $gdata['title']; |
#1259 | $pattern = '/[^\p{L}\p{N}\s]/u'; |
#1260 | $cleanSentence = preg_replace($pattern, '', $sentence); |
#1261 | $characters = utf8_str_split($cleanSentence); |
#1262 | $processedChars = array(); |
#1263 | foreach ($characters as $char) { |
#1264 | if (!preg_match('/\s/', $char) && !in_array($char, $processedChars)) { |
#1265 | $processedChars[] = $char; |
#1266 | echo '<a href="/search/mid_7/' . urlencode($char) . '" class="c1" target="_blank">' . htmlspecialchars($char) . '</a> '; |