Re: Truncating

From: Date: Thu, 24 Aug 2000 04:49:31 +0000
Subject: Re: Truncating
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-13301@lists.php.net to get a copy of this message
> It looks like substr will be my answer, but let's say the string I have > is 100 characters long and I'm not sure how many characters it will have. > One time it could be 100 the next time it could be 1000. How would I > accomplish this? I was thinking PHP had a built-in function for this, but > they don't. strlen -- Get string length. Description int strlen(string str); Returns the length of string.

« previous php.general (#13301) next »