Re: [PHP] Limit the number of characters in a string

2004-06-12 Thread Richard Harb
actually it is: substr($string, 0, 100); http://www.php.net/substr -Original Message- From: php-general Sent: Friday, June 11, 2004, 3:17:15 PM > substr( xxx, 1, 100) >>> >>>Hi >>> >>>Anyone know how to clip the number of characters in a string? For instance, >>>I have a string carrying

Re: [PHP] Limit the number of characters in a string

2004-06-11 Thread Daniel Clark
substr( xxx, 1, 100) >> >>Hi >> >>Anyone know how to clip the number of characters in a string? For instance, >>I have a string carrying a long piece of text, say, of 200 characters, but I >>want to reduce this to just the first 100 characters. >> >> >>Thanks in advance. >> >>Russell -- PHP Gene

[PHP] Limit the number of characters in a string

2004-06-11 Thread Russell Curtis
Hi Anyone know how to clip the number of characters in a string? For instance, I have a string carrying a long piece of text, say, of 200 characters, but I want to reduce this to just the first 100 characters. Thanks in advance. Russell -- --- Russell Curtis