RE: [PHP] Unique ID system - need help/ideas

From: Date: Thu, 11 Mar 2004 00:25:43 +0000
Subject: RE: [PHP] Unique ID system - need help/ideas
Groups: php.general 
Request: Send a blank email to php-general+get-180073@lists.php.net to get a copy of this message
J J <mailto:squid_66@yahoo.com> on Wednesday, March 10, 2004 4:22 PM said: > Will it be able to figure out what the last number is > if it's a character type and the number is something > like 00003? So it'll add one to make it 00004 and not > something like 10003. php knows. you'll just have to pad the string with zeros. <?php $number = "000001"; ++$number; echo $number; ?> that will output "2" not "1000001". chris.

« previous php.general (#180073) next »