here is my code i need to fix this pyramid here you can see the display and the code
the problem is that
* * *//these i want to fix
* *
* *
* *
* *
* *
* *
* *
* *
$n = 10;
for ($i = 1; $i <= $n; $i++)
{
for ($j = 0; $j < ($n - $i); $j++)
echo " ";
echo "*";
for ($j = 1; $j <= $i-1; $j++)
echo " ";
for ($k = 1; $k < $i-1; $k++)
echo " ";
if($i!=1)
echo "*</br>";
}