// 输出全拼音
$articleRule = str_replace('{pinyin}', GetPinyin($title) . '_' . $aid, $articleRule);
// 输出长度为 1 的拼音
$articleRule = str_replace('{py}', GetPinyin($title, 1) . '_' . $aid, $articleRule);
// 输出长度为 3 的拼音
$articleRule = str_replace('{py}', GetPinyin($title, 3) . '_' . $aid, $articleRule); |