Re: [PHP] limiting characters

2003-02-18 Thread Justin French
Do you want it chopped at a certain number of words, or characters? Justin French on 19/02/03 10:00 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that

Re: [PHP] limiting characters

2003-02-18 Thread R B
You can use the substr function: $myoutput = This is my sample output.; $myoutput = substr($myoutput,0,10); From: Michael P. Carel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] limiting characters Date: Wed, 19 Feb 2003 07:00:52 +0800 Hi to all, How could i limit the character

Re: [PHP] limiting characters

2003-02-18 Thread Michael P. Carel
it would be better if it will be chopped by words and not by characters. Any idea how? - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 7:26 AM Subject: Re: [PHP] limiting characters

RE: [PHP] limiting characters

2003-02-18 Thread Dennis Cole
, February 18, 2003 6:19 PM To: Justin French; [EMAIL PROTECTED] Subject: Re: [PHP] limiting characters it would be better if it will be chopped by words and not by characters. Any idea how? - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED

Re: [PHP] limiting characters

2003-02-18 Thread Justin French
: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 7:26 AM Subject: Re: [PHP] limiting characters Do you want it chopped at a certain number of words, or characters? Justin French on 19/02/03 10:00 AM, Michael P

Re: [PHP] limiting characters

2003-02-18 Thread Michael P. Carel
thnks its working here - Original Message - From: Justin French [EMAIL PROTECTED] To: Michael P. Carel [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 8:09 AM Subject: Re: [PHP] limiting characters Season to taste: ? function chopper($string,$length=20