Posted by Janwillem Borleffs on 04/17/06 11:08
davemitc@gmail.com wrote: > How do I insert a hash # into a string, after every 10th character? > $s = 'the quick fox jumped over the lazy dog'; $h = preg_replace('/(.{10})/', '$1#', $s); print $h; JW
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming