//转换bb代码 [code] function convertbbcode($str){ $expression = "[\[em:\d+:\]+]"; preg_match_all($expression,$str,$replace); foreach($replace as $key => $value){ foreach($value as $k => $val){ $expr = "[\d]"; preg_match_all($expr,$val,$array); foreach($array as $kk => $num){ $sum = count($num); } ...
by 网中浪子 - PHP - 2009-05-18 09:07:52 阅读(860) 回复(1)