Re: just 10 characters from a string
| From: | James Holloway | Date: | Fri, 31 Aug 2001 09:25:12 +0000 |
| Subject: | Re: just 10 characters from a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65439@lists.php.net to get a copy of this message | ||
Hi Marcos,
use substr();
http://www.php.net/manual/en/function.substr.php
$string = substr($string, 0, 10);
James
"Marcos Lloret" <mlloret@mail.fujitsu.es> wrote in message
news:019701c131f1$f57bdfa0$371c94c1@mlloret...
hi to all,
i have a long string (about 255 characters) and i would like to show
only 10. how can i do it?
thanks in advance,
marcos