use printf( "%02d", $a + 1 )
or something like that. Should work.
Mario
<p>
Labunski wrote:

Hello,
I have small problem..

$a = 01;
echo $a+1;
//this will display 2, instead of 02.

How to get 02?

thanks.
Lab.




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



Reply via email to