[ create a new paste ] login | about

Link: http://codepad.org/v3ysqV5A    [ raw code | output | fork ]

PHP, pasted on Mar 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$text = "The quick brown fox jumped over the lazy dog.";
echo $return = costomwrap($text , 10);

function costomwrap($text , $len)
{
$str = '';
for($i=0;$i<strlen($text);$i = $i+$len)
{
  $str .= substr($text , $i , $len ).'<br />';
  $len--;
}
return $str;
}

?>


Output:
1
The quick <br /> brown fo<br />ox jumpe<br />ed over<br />r the <br /> lazy<br />y do<br />og.<br />.<br />


Create a new paste based on this one


Comments: