<?php
$t = 'abcdefg324gfdgfgfdg543rewhtrewhtth655';
echo preg_replace("/(.{10})/","\\1|",$t);
?>
不适用于含中文的串
$t = 'abcdefg324gfdgfgfdg543rewhtrewhtth655';
echo preg_replace("/(.{10})/","\\1|",$t);
?>
不适用于含中文的串
怎样实现?字符串里肯定有中文的拉
http://community.csdn.net/Expert/TopicView.asp?id=3839890