1 digit numbers
Posted: Tue Jun 01, 2004 2:30 pm
I'm having trouble getting single digit numbers to be 1 digit. This is what I have:
And I get:
I'd like the code to generate 1 digit numbers like 1 instead of 01. Any suggetions? 
Code: Select all
<?php
$num_right = 0;
if (expression) {
$num_right .= $num_right + 1;
} elseif (expression) {
$num_right .= $num_right + 1;
}
?>Code: Select all
01
or
02