2011-04-08から1日間の記事一覧
function mb_ret( $str ,$width ){ $split = preg_split( '/(? 0 ){ $line .= array_shift($split); if( mb_strwidth($line) > $width or count($split) < 1 ){ $ret .= $line."\n"; $line = ''; }; }; return $ret; }
function mb_ret( $str ,$width ){ $split = preg_split( '/(? 0 ){ $line .= array_shift($split); if( mb_strwidth($line) > $width or count($split) < 1 ){ $ret .= $line."\n"; $line = ''; }; }; return $ret; }