Re: Getting first character?
| From: | PHPGalaxy.com | Date: | Tue, 13 Nov 2001 01:44:54 +0000 |
| Subject: | Re: Getting first character? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14266@lists.php.net to get a copy of this message | ||
Hey Matt......you would use the substr function for this...for example:
$stuff = the number you're checking..
$fnum = substr($stuff, 0, 1)
and $fnum is the first number (as a string) from $stuff =)
- Tim
--
From PHPGalaxy.com, earn up to $10 per order selling our PHP Scripts
and Software on your Site. http://www.phpgalaxy.com/aff/
Also, get a fast free POP3 email account, you @php.la at
http://www.phpgalaxy.com/search/