Wednesday, 27 April 2011

Break a long string containing no space

$text is a long string.

$text = "45353453453erfgdvdfbfgbfgbfgb";
$newtext = wordwrap($text, 8, "\n", true);
echo $newtext;

1 comment:

  1. That's really helpful... thanks buddy!!

    ReplyDelete