[ create a new paste ] login | about

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

PHP, pasted on Aug 4:
1
2
3
4
5
6
7
8
<?php

$str = str_repeat('ABC DE', 4);

$newtext = wordwrap($str, 4, " ", true);
echo "-->$newtext<--\n";
echo "   ", str_repeat('    ^', 5), "\n";
echo "   ", str_repeat('  SP´', 5), "\n";


Output:
1
2
3
-->ABC DEAB C DEAB C DEAB C DE<--
       ^    ^    ^    ^    ^
     SP´  SP´  SP´  SP´  SP´


Create a new paste based on this one


Comments: