Re: newbie, simple problem / question

From: Date: Wed, 30 Apr 2003 01:14:54 +0000
Subject: Re: newbie, simple problem / question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145714@lists.php.net to get a copy of this message
*This message was transferred with a trial version of CommuniGate(tm) Pro* Paul - depending on what you need, the following will work.. $msg = substr($msg,0,40); will cut the string at 40 chars no matter what.. Rolf Brusletto PHP / MySQL Coder http://www.phpexamples.net - [ Paul Ferrie ] - wrote:
*This message was transferred with a trial version of CommuniGate(tm) Pro* Can someone tell me to shoreten stirng information. I mean: Load information from db $msg="blah blah blah blah blah blah blah blah blah blah blah " ; What i am trying to do is before the information is sent to output I want to shorten it so that it is like $msg="blah blah blah..." ; cheers


« previous php.general (#145714) next »