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