Print 12345 in php
<!DOCTYPE html>
<html>
<body>
<?php
for($i=5;$i>=1;$i--){
for($j=1;$j<=$i;$j++){
echo $j;
}
echo "</br>";
}
?>
</body>
</html>
output:-
12345
1234
12312
1
Print 12345 in php
<!DOCTYPE html>
<html>
<body>
<?php
for($i=5;$i>=1;$i--){
for($j=1;$j<=$i;$j++){
echo $j;
}
echo "</br>";
}
?>
</body>
</html>
output:-
12345
1234
1230Comments
Thanks you for commenting your questions. I will see question and respond you.