<?php
// Number of rows for the pattern
$rows = 5;
// Loop through each row
for($i = 1; $i <= $rows; $i++) {
// Print stars equal to the current row number
for($j = 1; $j <= $i; $j++) {
echo "*";
}
// Move to the next line
echo "\n";
}
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: