//while loop $x = 1; while ($x <= 9) { $numZero = 1 - strlen($x); echo $x; echo ''; $x++; } //for loop for($i=1;$i<=10;$i++){ echo $i.''; }
echo
$str = (string) $int;
$str = ''; //for loop for($i=1;$i<=10;$i++){ $str .= (string)$i; } echo $str;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)