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 :D
Printable View
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 :D
You could use the substr function
IE) $test = substr($string,startchar,length)
http://ca3.php.net/manual/en/function.substr.php
HTH
Thank You :D