Is there a function in PHP that schedules a given routine? What I would like is that at the turn of the day, in the case, 00:00, a script, in php, would be triggered to perform certain task. It would be more or less the setInterval of javascript, where every time something is executed. In my example, I want you to always change the day when the script is executed by searching for some information in the database and changing that information according to the previously established need.