Re: Why $a +1 is not 02 ??
| From: | Mailit, LLC | Date: | Wed, 24 Nov 2004 07:29:41 +0000 |
| Subject: | Re: Why $a +1 is not 02 ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202746@lists.php.net to get a copy of this message | ||
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.