first three characters
| From: | Rahul Bhide | Date: | Mon, 19 Mar 2001 06:01:50 +0000 |
| Subject: | first three characters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44487@lists.php.net to get a copy of this message | ||
Gurus,
How do I extract the first n characters out of a word . I have this-
$Word = attention
I want -
$Word_3 = att
$Word_4 = atte
$Word_5 = atten
this is only extracting first three/four/five characters .
What is the right function to use here ??
thx in advance.
~Rahul