|
-
May 23rd, 2006, 07:44 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] How to trim string to first 3 characters
I have a string which comprises of many caracters, the only data that is useful to me is the first 3 numbers.
How do i trim the string to become only the first 3 characters?
ILMV
-
May 23rd, 2006, 08:41 AM
#2
Re: How to trim string to first 3 characters
You could use the substr function
IE) $test = substr($string,startchar,length)
http://ca3.php.net/manual/en/function.substr.php
HTH
-
May 23rd, 2006, 10:00 AM
#3
Thread Starter
Frenzied Member
Re: How to trim string to first 3 characters
Thank You
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|