Re: Truncating

From: Date: Thu, 24 Aug 2000 05:02:37 +0000
Subject: Re: Truncating
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13302@lists.php.net to get a copy of this message
> Sorry about the many e-mails, but I found this example that trucates a > string in a Perl script: $TruncatedWord =~ s/(\S{50})/$1 /isg; is their any > chance I can convert this to PHP using preg_replace? If so, how? > > Andrew > digi-FX http://www.qgl.org/docs/php/ref.pcre.html but why would you want to load up regex when you can use substr()? jason

« previous php.general (#13302) next »