Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP wordwrap — Wraps a string to a given number of characters

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

echo $newtext;
?>
 
PREVIOUS NEXT
Tagged: #PHP #wordwrap #Wraps #string #number #characters
ADD COMMENT
Topic
Name
2+1 =