Ticker

6/recent/ticker-posts

amazing wordwrap in PHP

http://in2.php.net/manual/en/function.wordwrap.php



an example from the link


Example #1 wordwrap() example
<?php
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20, "<br />\n");

echo $newtext;
?>
The above example will output:
The quick brown fox<br />
jumped over the lazy<br />
dog.

-- 
Regards,
Pavan Agrawal

Post a Comment

0 Comments