RE: [PHP] Generating sequence of AlphaNumber

From: Date: Thu, 15 Nov 2007 13:42:10 +0000
Subject: RE: [PHP] Generating sequence of AlphaNumber
Groups: php.general 
Request: Send a blank email to php-general+get-264565@lists.php.net to get a copy of this message
On 15 November 2007 00:32, Jeffery Fernandez wrote: > How > can I get a sequence of values like: > > AX0001 > AX0002 > AX0003 > AX0004 > ..... > AX0099 > AX0100 > > and so on ? Actually, the ++ operator will do this for you: $seq = "AX0000"; ++$seq; // AX0001 ++$seq; // AX0002 Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 812 4730 Fax: +44 113 812 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#264565) next »