Re: Limit the number of characters in a string

From: Date: Fri, 11 Jun 2004 13:17:15 +0000
Subject: Re: Limit the number of characters in a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188101@lists.php.net to get a copy of this message
substr( xxx, 1, 100) >> >>Hi >> >>Anyone know how to clip the number of characters in a string? For instance, >>I have a string carrying a long piece of text, say, of 200 characters, but I >>want to reduce this to just the first 100 characters. >> >> >>Thanks in advance. >> >>Russell

« previous php.general (#188101) next »