In order to loop between interval of dates we use DateInterval, DatePeriod
For loop can be used to execute for the specified number of times
Basic Syntax : for(init count; total count; count increment){ //code can be execute each iteration }
init count : Initialize the variable and assign loop count the count value,
total Count : evaluate the total count, if the count is lesser than the value, the loop iteration
count increment : Increment the count value, when loop iteration
shell_exec() falls under the category of program execution functions in PHP which is used to execute command via shell and return the complete output as a string.
The basic Syntax for how to echo the statement
<?php echo "Hello Friends"; ?>