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: [EMAIL PROTECTED]
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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to