if(ereg('/{p',$articleRule)) { //$articleRule = str_replace('{pinyin}',GetPinyin($title).'_'.$aid,$articleRule); //$articleRule = str_replace('{py}',GetPinyin($title,1).'_'.$aid,$articleRule); $articleRule = str_replace('{pinyin}',GetPinyin($title),$articleRule); $articleRule = str_replace('{py}',GetPinyin($title),$articleRule); } $articleUrl = '/'.ereg_replace('^/','',$articleRule); return $articleUrl; } } |
$articleRule = str_replace('{pinyin}',GetPinyin($title),$articleRule); |
新闻热点
疑难解答