We are going to know how to make a star polygon in php using for loop. Here we are using eight for loops. first loop indicates always the number of row.
Second for loop are using to give space. Third loops are using to left side triangle with star.
Fourth for loop are using for right side triangle with star.
Sixth for loop is using to give space and seventh for loop is using to left triangle with star in reverse order.
Eight for loop is using for right side triangle with star in same reverse order.