Re: increment numbers...

From: Date: Tue, 14 Jan 2003 05:25:49 +0000
Subject: Re: increment numbers...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131514@lists.php.net to get a copy of this message
$num = sprintf("%05d",$num); ----- Original Message ----- From: "Senani" <senani@sri.lanka.net> To: <php-general@lists.php.net> Sent: Monday, January 13, 2003 10:21 PM Subject: [PHP] increment numbers... HI all, I need help on incrementing numbers starting with a 0 or more on php-4.2.3. When I increment a number like 00002 (00002++). Its out put is 3 ( not 00003). But Its output had leading 0s on php-4.0.2. Does anybody know any function or any other simple way to do this. Rgds JanakaA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#131514) next »