Day finder program shows us day name of the week from numeric value such as: 1,2,3,4.. upto 7. If we consider Saturday=1, Sunday=2, Monday=3, Tuesday=4, Wednesday=5, Thursday=6 & Friday=7. Then we can simply make a day finder program in php which shows us the day name from the day number. We can make the day finder easily by using array and switch in php. Firstly, we will create an array of days: $days = array(1=>"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"); …
We can make star triangle very easily by using ‘for’ loop in php. It helps to improve the logic of a php beginner. A star triangle/star pyramid looks like below:        OR          If you want output like 1st picture, write a sample code in php like below: <p align="center"> <?php for($i=7;$i>0;$i--){ for($j=0;$j<$i;$j++){ echo "*"; } echo "<br>"; } ?> </p> If you want output like 2nd picture, write a sample code in php like below: <p align="center"> …