<?php for ($i=5;$i>0;$i--) { //loop for columns for ($k=5;$k>$i;$k--) { // loop for spaces in rows echo "   "; } for ($j=0;$j<$i;$j++) { // loop for star in rows echo "* "; } echo "<br>"; } ?>
Stay tuned for the PHP Magento, WordPress and Magento2 latest tutorial and updates, Hope you enjoyed reading, if you need the professional Magento Development / PHP we can help you, just Click on the Link and send me your requirements.
Please Like the Post on Facebook or Google+.