Generating sequence of AlphaNumber
| From: | Jeffery Fernandez | Date: | Thu, 15 Nov 2007 00:32:01 +0000 |
| Subject: | Generating sequence of AlphaNumber | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-264534@lists.php.net to get a copy of this message | ||
Hi all,
I am having trouble generating a sequence of numbers from the following start
value:
AX0001
what I have done so far is loop through each character and check if its a
alphabet and separating the characters and digits.
But when I increment the digits, its strips of the leading zeros. How can I
get a sequence of values like:
AX0001
AX0002
AX0003
AX0004
.....
AX0099
AX0100
and so on ?
jeffery
--
Internet Vision Technologies
Level 1, 520 Dorset Road
Croydon
Victoria - 3136
Australia
web: http://www.ivt.com.au
phone: +61 3 9723 9399
fax: +61 3 9723 4899