[PHP] increment numbers...

2003-01-13 Thread Senani
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 2 (2++). Its out put is 3 ( not 3). But Its output had leading 0s on php-4.0.2. Does anybody know any function or any other simple way to do th

RE: [PHP] increment numbers...

2003-01-13 Thread Senani
ou want? -Original Message- From: Senani [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 3:22 PM To: [EMAIL PROTECTED] 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 increme

Re: [PHP] increment numbers...

2003-01-13 Thread Senani
That also worked .. !! I tried this function .But used wrong arguments. Thanks a lot for the help. Rgds JanakaA At 11:25 PM 1/13/2003 -0600, you wrote: $num = sprintf("%05d",$num); - Original Message ----- From: "Senani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT