Posted by Janwillem Borleffs on 04/17/06 11:45
Janwillem Borleffs wrote: > $s = 'the quick fox jumped over the lazy dog'; > $h = preg_replace('/(.{10})/', '$1#', $s); > print $h; > Here's an alternative approach, which might be faster: $s = 'the quick fox jumped over the lazy dog'; $h = wordwrap($s, 10, '#', 1); print $h; JW
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming