I have a variable $strNum = "000000";
Throught the code output I need to have 6 digits for $strNum.
Here is the code
The print out looks like this:
2
4
6
8
10
I want it to look like this
000002
000004
000006
000008
000010
and so on.
Any idea's?
Thanks
Timgerr
-How important does a person have to be before they are considered assissinated instead of just murdered?
Throught the code output I need to have 6 digits for $strNum.
Here is the code
Code:
$strNum = '000000';
$intNum = '2';
while($strNum <= '1000000'){
$strFinal = ($strNum * $intNum);
$echo $strFinal;
$strNum++;
}
The print out looks like this:
2
4
6
8
10
I want it to look like this
000002
000004
000006
000008
000010
and so on.
Any idea's?
Thanks
Timgerr
-How important does a person have to be before they are considered assissinated instead of just murdered?