
How to find the line on which execution was interrupted in PHP
Example of code to determine the line where the script execution was interrupted

Iteration over a time period in PHP
I have repeatedly had to work in php with a list of dates (by day, for example) if there is a start and end of the period ($dateStart, $dateEnd). For example, in order to synchronize working/weekend days with the backend for the DatePicker from jQueryUI.