RE: [PHP] just 10 characters from a string

From: Date: Fri, 31 Aug 2001 09:20:26 +0000
Subject: RE: [PHP] just 10 characters from a string
Groups: php.general 
Request: Send a blank email to php-general+get-65440@lists.php.net to get a copy of this message
$string=abcdefghijklmnopqrstuvxyz $string = substr($string, 0, 10); Thats all there is to it. -----Original Message----- From: Marcos Lloret [mailto:mlloret@mail.fujitsu.es] Sent: den 31 augusti 2001 09:53 To: php-general@lists.php.net Subject: [PHP] just 10 characters from a string hi to all, i have a long string (about 255 characters) and i would like to show only 10. how can i do it? thanks in advance, marcos

« previous php.general (#65440) next »