Re: String trunctaing

From: Date: Wed, 16 Aug 2000 13:14:16 +0000
Subject: Re: String trunctaing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11987@lists.php.net to get a copy of this message
Read the manual, specifically the part on substr(); You'll want something like $string = substr($string, 0, 20); Jurian At 09:12 16-8-2000 -0500, Glenn MacGregor wrote:
Hi All, Is there an easy way to truncate a string at 20 chars for instance? -- Glenn MacGregor Director of Services Oracom, Inc. http://www.oracom.com Tel. +1 978.557.5710 Ext. 302 Fax +1 978.557.5716 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#11987) next »