PHP Programing language

How can create a Star print using for loop
Previous Home Next
<html>
<head>
<title>print star</title>
</head>
<body>
<?php
$a;
$b;
{
for($a=1;$a<=5;$a++)
{
for($b=1;$b<=$a;$b++)
{
print "*";
}
print "<br>";
}
}
?>
</body>
</html>

 

output
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: