Show only first x characters of string

From: Date: Tue, 29 Apr 2003 13:47:32 +0000
Subject: Show only first x characters of string
Groups: php.general 
Request: Send a blank email to php-general+get-145649@lists.php.net to get a copy of this message
Hi I am trying to find a function that only shows the first 20 characters of a string. Eg : $string = "A very long paragraph would be shown here" $dots = "..."; echo $string $dots; actually prints A very long paragrap... etc. Many thanks James

« previous php.general (#145649) next »