Re: Best way to read first 20 characters of a string?

From: Date: Wed, 02 Dec 2009 15:15:35 +0000
Subject: Re: Best way to read first 20 characters of a string?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-300211@lists.php.net to get a copy of this message
Have you tried tha substr PHP function? "Chris Payne" <chris_payne@danmangames.com> escreveu na mensagem news:554f315f0912020711m5e0cc2e8qd6a1926a80590013@mail.gmail.com... > Hi everyone, > > I'm pulling data from a mysql database, but need only the first 20 > characters of each string for a short description, what is the best > method to just grab the first 20 characters from a string regardless > of whether they are letters or numbers? > > Chris

« previous php.general (#300211) next »