<?php /** *wordwrapдля многобайтовых кодировок *автор:Megido *20.02.10 */ function mb_wordwrap ($str,$width=75, $break="\n", $cut=false, $charset="null") { if($charset== "null") $charset= (); ($break,$str); (); foreach($pieces as$piece){ $current= $piece; while($cut&& ($current)> $width){ $result[]= ($current,0, $width, $charset); $current= ($current, $width,2048, $charset); } $result[]= $current; } ($break, $result)); } echomb_wordwrap ($mb_string,16, "<br/>", true,"utf-8"); ?>